One simple way to put it: Airlines (unlike many other industries) don’t use a “cost plus” model to price airfare.
They figured a long, long, long time ago that they could make more money dynamically pricing the way they do: based on demand, competition within each market, etc.
We all do ourselves a favor when we stop thinking that airlines price like almost everyone else. Much easier that way.