The purpose of a company is not to maximize profits because that would mean you have to pay taxes.
The holy goal instead, is to maximize shareholder value. A small, but important difference (and helps explain the existence of companies like Uber and Twitter who have barely turned a profit in the past decade).