People in Europe spent years walking to the store everyday for food until they discovered that mechanical refrigeration exists...
Actually this idea of just buying things at "the store" is relatively new too. Historically people would make more things themselves, and more food would be purchased directly from farmers who had grown it.