The the legal duty of a company is not to make money; it is to carry out the objects of the company as stated in its memorandum and articles of association (mem & arts).
In theory yes, but who enforces that duty? I can't sue, say Southern, for failing to provide a rail service just because it is in their memorandum and articles. They will not get struck off the companies register for failing to provide a train service. Their
CEO▸ will not get the boot for failing to provide carry out the objects of the company, but he will get the sack if the shareholders decide he is not making them enough money.