> But for-profit corporations, which is what most people think about when they say "corporation" are generally legally required to put profit above any other value, assuming they are operating legally.
No they aren't. They do have a fiduciary duty to act in the interests of shareholders, which means not taking actions which are unexpected and obviously harmful to other shareholders like paying all the company's revenues to another company wholly owned by the CEO. But that duty to shareholders actually even obligates them to take into account factors other than profit, whether that's mitigating risks or abiding by a shareholder resolution to follow a 'socially responsible' business practice that costs them a lot of profit, and management absolutely also has enough discretion to choose to design and follow its own 'socially responsible' business practices or decline to enter a profitable sector they don't want to involve themselves in. No executive has ever been penalised for not putting profit above any other value.
Companies pursuit of profit is much less driven by legal obligation and much more driven by the fact that greater profitability tends to generate greater returns to the management as well as the shareholders.