Running a business often requires making hard choices to keep the doors open, but those choices, and the choice to stay open at all, depend on who is making them.
The modern publicly traded company (effectively owned and operated by Wall Street traders) is somewhat unusual in the history of business, in being structured specifically to require everyone to act solely for shareholder value or profit. But it is a choice to structure a business in this way, and things like B corps, co-ops, etc. are different structures designed to optimize for different goals and values.