What I'm learning is that some people don't keep a stock of what I would consider "bare minimums" in their cupboard.
First of all, properly stored flour, sugar, and cocoa powder doesn't attract bugs. Glass jars that seal well, done. Hell even plastic tubs. It expires pretty rarely as well, surely you can just bang out a couple of loaves of bread before that happens?
Anyway, yeah, is it not like, a very normal thing to keep flour, sugar, baking soda, cocoa powder, salt, perhaps yeast on hand? Butter, oil, some pasta, maybe some rice? Like, how do you cook otherwise, just buy small batches of these things every time?