It's not just supermarkets.
For most of recent history in the West, it's been fairly normal for homes to maintain a larder, root cellar, pantry, or other long-term food storage as a buffer against both economic and supply-related hardships.
Prudently doing so in the modern era, however, is a fairly surefire way to get branded a crazy prepper. And supply chain buffers at home are becoming even shorter with the advent of DoorDash, Uber Eats, etc.