My understanding is that a portion of net profits might go towards rewarding shareholders through buybacks (bolstering the stock price), but most of it is reinvested into the business, i.e. exactly what you are saying you wish they would do. A windfall enables them to purchase more aircraft and pay down debt accumulated in the years they do not make much in profit, of which there were many in recent history. Is it too much profit? I don't know, but they're spending over $7 billion in capital expenditures this year.
I'm not sure what to say to you wanting them to have better tech. I wrote code for a major shipping company over 2 decades ago, and it's impressive to me that airlines mishandle bags at a far lower rate (under half a percent) than UPS and Fedex which usually are around 3-5%. I'm not a logistics expert. Will things get better with robots or something? Time will tell.