Christmas analogy for web development

When you are getting Christmas gifts for your friends and family, do you get the boxes, ribbons and wrapping paper first then purchase gifts that will fit in them? I'm sure you would said, "That's crazy!". So why is it that people still approach web development by designing the layout before creating the content?