Shareholders are the owners. Management are legally required to maximize profits for the owners who hired them. It's not merely a recent social construct.
That's why you see shareholder lawsuits against their own company when management does something dumb/illegal and the stock drops.