Stop asking the market to look after collective interest. This is the job of the government. The ultimate effect of virtue wanking CEOs and corporate governance is to deceive people into thinking democracy is something that can be achieved by for profit organizations and that they can forsake the formal binding of collective interest through law. It's nice if people are nice but it is not a bulwark of the collective…
That's completely misguided. Consumers purchase from companies they like. Why do you think companies are all woke and virtue signalling? Because they interpreted the vocal woke minority as the voice of the country and they want to capture that market. Corporations will absolutely try to do go in order to maximise their profit. And this is ignoring private charities which get more done than any government has ever don…
In addition, democratic governments (and even many autocratic governments) have some levels of distribution of power. Your small municipal government may very well end up being absorbed into you neighboring municipality because it is more efficient. Maybe an intermediate judicial step is introduced at a county, or even country level.
Governments do try, and often succeed into making your freedom and your interaction with society at large as efficient as possible, while trying to maximize your happiness. (Although I’ll admit way to often democratic governments do act in a way that maximized the profits of the wealthy class more then your happiness).