And there's what wrong with the world in one short sentence. The market was supposed to be about raising capital so companies could go out and earn profits, the company shouldn't worry or care about its share price in the secondary market, it should be taking the capital and making good business decisions that lead to making profits. Letting the share price be the metric that decisions are made on is letting the tail wag the dog and leads to short term quarterly thinking and bad decisions all around; it's not how a good company is run. Profits lead to good companies which lead to good share prices, you aim for profits and good share prices are the result, not the other way around.
Some companies controlled by a small number of investors (typically founders) may have other more socially constructive priorities, but I think in even many of those cases, it's lip service, and the real reason those things are priorities at all are because it's 'good business' (it will be better off for the shareholders financially).
But "the company" is literally owned by people who buy & sell portions of it in the second market. There are only two reasons to buy shares of a company: dividends and price gains. Owners of company first and foremost want their investment to appreciate not depreciate, ergo company cares about share price first and foremost.