Yup, every time this topic comes up, I have to think about Dodge v. Ford Motor Co. The court case that enshrined shareholder primacy and put the US on the path to its current form of capitalism. And every time I'm amazed at the thought that Henry Ford, despite being a giant asshole, was on the correct side here. He was sued, because he wanted to spread his wealth and share it with workers instead of paying dividends to shareholders. Clearly he understood where his wealth came from.
Shareholders provide working capital to the corporation. Building a factory requires money.