I don't follow the logic at all; other than altruism, why would anyone buy shares of a company that wasn't trying to make an excellent sustainable profit over time / increase its share value?
Because they're not trying to make money from the shares increasing in value sustainably; they're trying to make money in other ways. A couple of examples:
* Buying some shares, creating a bubble that causes those shares to increase in value non-sustainably, then selling the shares before the bubble pops;
* Getting compensated in stock options with a low exercise price, taking short-term actions that cause the share price to rise non-sustainably, exercising the options and selling the stock at a higher share price, then using a golden parachute to leave the company, letting others pay the price for the non-sustainable actions.
None of the examples you give show this. What they show is that, because of flaws in corporate governance, things that do not maximize shareholder value are being done in the name of "maximizing shareholder value".