A privately owned company can do as it (that is: its owner(s) without state oversight) wishes.
--
If you want me to comment on the philosophy or morals of it though, I suppose I think 'meh, whatever' - a private company is free to spring up and compete, free of public shareholders and free to maximise customer satisfaction instead. Of course it's easy to say 'free to spring up', and really there are all sorts of barriers to entry in many almost monopolistic markets, but that's rather a separate issue I think - it's just as much an issue for any less customer-oriented, perhaps public or wannabe public, company trying to compete.
They only have to do what the shareholders demand if the shareholders actually vote to make them.
The meme of the "fiduciary duty" meaning that profit must be maximized at all costs has been debunked so many times by now it's really not funny.
The "fiduciary duty" rule that actually exists simply means (as I understand it) that execs can't legally enrich themselves at the company's expense beyond their agreed-upon compensation, without the approval of shareholders/the board.
So no; "every for-profit company" should not and does not have to take steps to maximize profit at the expense of their employees, their customers, and the public at large. Frankly, many of the ways they currently do this either are already or should be illegal, and are definitely immoral and detrimental to a healthy and functioning society and economy.
Companies changed up the way they did things starting in 2008 in order to survive, but sticking to that short term panic survival tactic is coming to a head. They've done almost everything possible in order to ensure growth, but the public just can't handle it and things are starting to collapse under the weight of near maximum monetization.