For years we have had a good supply of food such as pasta, rice, different lentils, chickpeas, different beans, tinned tomatoes. We also always have bread and milk in the freezer along with frozen veg, frozen home made soup and meals I have batched cooked and frozen.
We always have at least 3 months of food although probably more with the lentils, chickpeas etc.
This is for a few reasons. Me and DH absolutely hate any kind of shopping so we go as as little as possible. We do a big shop probably once every 6 to 8 weeks and just buy fruit and veg weekly (usually at the local market which is a lot nicer than shopping in supermarkets).
Also we got snowed in around 40 years ago when we liked in Kent and had very little food in the house. We had only been married around a year and had no money.
So many things could happen - snowed in, roads flooded (we live at the top of a hill and thought our area could never be flooded but it was just because of all the rain and the water just pouring off of the fields. The roads to the local town (6 miles away) were just not driveable. Also if you can't get to shops because of snow or floods a delivery will not be able to get to you.
Also you could be ill and not able to get to a shop, your car could breakdown. Yes you might well be able to get a delivery but for weeks after the beginning of lock down there were no deliveries, sometime even for vulnerable people. You could, for various reasons, have very little money to buy food.
I could never ever only have enough food for only a couple of days or even for a week or two.
We don't have a big house but its surprising just how much you can fit in even 1 kitchen cupboard. We do have a fridge freezer and another upright freezer and that is in the garage.
I think it is sensible to have a good stock of food.