Shareholders own the business. And they can do what they want with it.
It is a total lie to say that they "have" to maximize profits.