That said, these profits are in part an accounting artifact. This is because up until very recently airline accounting rules only required carriers to realize the marginal cost of carrying a passenger when frequent flyer miles were redeemed. Since the marginal cost of a passenger is only ~$20 or so, this yields great margins.
These days however the overwhelming majority of airline miles are awarded for credit card spending rather than actually flying, though. As your second article notes, for United the split is 70/30 or so.