In the US pubicly held corporations have a legal obligation to act in the interests of their shareholders. Not always, but typically this means maximizing revenue as that's how the company provides value to it's owners.
That does not require them to maximise their immediate profit, like they have just about to go bankrupt, though. They should strive to maximise overall return to shareholders.