It's false. It's just that it's close to what's actually true, so it's pretty easy to pass it as a fact.
Basically, what a company is required to do is serve the BEST INTERESTS of its shareholders. This might not necessarily be the same as maximising shareholder value.
https://www.nytimes.com/roomfordebate/2015/04/16/what-are-co...