That's not how it used to work. That's still not how it works in my country. I buy my bread from a specialized shop, my cheese from another, and my fresh produce from yet another. I know people who only buy their meat from a butcher (I do it sometimes, but not always).
I understand your point of view. But in cities of all sizes, it's easier to not have to do that. For example in NYC, a medium size city, you can easily go do your shopping in multiple places, and not at the same time.
Economic viability isn't what led to "wide availability and inventory". No, it's imperialism. It's exploitation of the Global South. It's paying slave wages through subsidiaries in West Africa to cocoa farmers while making sure those countries stay poor, for example.
We also wage economic war on our our anointed enemies like Cuba and then use the inevitable result of that economic warfare as a reason why our system is good.