They don't have a legal duty to maximize profits, they have a legal duty to represent the fiduciary interests of the shareholders. If the company doesn't make as much profit next quarter but it will be healthier in the long run for it, that is perfectly OK.