What? No. Legally that may be true for C-corps, but AFAIK that's explicitly why people started doing B-corps; to have other metrics of success than just those two. And even for C-corps, doesn't it still depend on what the shareholders want?
And after all that, you've still got to consider that if you're only looking at "ends justify means", well, why do you think you're at an end and can even measure it?
People are just tired of assholery, ok.
It's not like greed is new. It's always been a part of human experience, usually bad, and especially so when it becomes extractive and monopolistic. But there's something about "tech" startups that seems to attract the most awful personalities into c-level leadership.
I expect railroad and oil tycoons were much the same in their day. I don't expect anything to be different in the tech industry.
If it is impossible to plan precisely enough to determine the bottom line 20 years from now, perhaps fostering a dynamic, healthy culture with a powerful vision is a more effective way of creating a successful company than narrowly looking only at the amount of profits. Obviously, the business model must be considered. But a business model with no value system or vision will likely crumble as conditions change.