It is optimised for all travellers but no single individual traveller.
Airline margins are razor thin, and it is a commoditised industry so an airline company can only compete on scale and efficiency. Which means that it has in aggregate the most number of people transported to their destinations in the shortest possible times, as a whole.