Why are flights so expensive?

American Airlines had 3 flights going to the same place that were all half empty. We literally got moved to first class for balance. Why the fuck do I have to pay $400+ for half empty flights?