Sure, they take the same space. That doesn't mean you need a sprawling store with an eatery to buy them in, nor do you need 12ft (3.6 meters) of a single laundry soap nor a full shelf of one type of ketchup.
Store layout and the space allotted for each product differs between places, in other words. I'm going to assume things like shelf height does as well. When these things are in the back room, they don't take up space in the same way as the sales floor. Also, it is quite possible that many retailers simply do not have the same sort of selection as they do elsewhere: If you sell fewer things, you don't need so much space.