It makes sense for people as a whole to optimise as a society and have the locally produced society
That's where we can choose an economic system that ensures that we optimise in general rather than individually, so we avoid the prisoner's dilemma type problems.
I can't stop myself from eating an entire of package of Oreos if they're in the kitchen. So I don't buy them. I don't give myself the choice, because I know I'll make a bad one. Instead, I choose to restrict my choice (and the choice of the rest of my household) for our overall well-being.
This feels pretty bad if you're a 10-year-old and just want some freaking cookies. Sorry you weren't able to make your own choice there. Our overall well-being took priority over your individual liberties. I get why that is unacceptable to some folks, but there has to be some balance, and sometimes that means restricting personal liberties in order to maintain the health of the overall system and community.
Local is "sexy" but it has had worse efficency instead of better like promised and is often premised upon overassumptions of the cost of transit and a denial of inconvenient fact of economies of scale because it doesn't fit their world view.
It appears that part of the reason it is popular is because people think they understand it and think the logistics would be easier. I would put it in the simple, easy, and wrong camp of ideas.
I make six figures and I can get by at $4/gal but if/when you apply that reasoning to subsidies/protectionist regulations across the economy my ability to purchase goods and services is greatly reduced and so is my quality of life. I'd get by though. But it's not about me. It's about the family making half of what I make with three children that need to be fed and clothed. They're the ones who really get screwed when you hike the prices of commodities with protectionist measures. So given the choice of who gets screwed I'd pick the local dairy farmers every time.