Despite losing money on passenger flights, all four major U.S. airlines profit through loyalty programs and credit card deals.