Yet strangely, before mass-market supermarkets existed, people in rural areas ate fresh produce directly from farmers without having such 'economy of scale'.. and the people in the city had trouble accessing them..
when the 'economy of scale' is devoured by the middlemen creating it, it is neither economical nor scalable..
Before mass-market supermarkets existed, rural people ate fresh produce often only because they grew it themselves, not because they were able to buy it direct from a farmer. To buy from a farmer, you need cash, and a lot of rural families were cash-poor. Instead, people in the countryside maintained their own gardens and they made a lot of pickled foods for the winter. However, that is all a lot of work, and in fact historically a lot of rural families had poor nutrition in terms of fresh vegetables in spite of living in the regions that these vegetables came from.
It's a bad situation for people that don't have cars, but for people with cars, 2 or 3 miles to a grocer is irrelevant.
In Detroit, roughly 90% of households have at least 1 vehicle:
https://datausa.io/profile/geo/detroit-mi/#category_transpor...
You go to a more populated area in the US (basically any major metro), you can get the good stuff fairly easily.
We also have 'food deserts' in poorer urban centers (certain cities in Alabama could qualify). I don't have an explanation for those, I think it has to do with poverty.