Getting in enough food for winter was quite a challenge before safe and reliable methods of preserving it came along. And some of the ones we know today are of quite recent invention.
https://www.thekitchn.com/breakthroughs-in-food-science-canning-218083