After a decade of multibillion-dollar losses, U.S. airlines appear to be on course to prosper for years to come for a simple reason: They are flying less.

By grounding planes and eliminating flights, airlines have cut costs and pushed fares higher. As the global economy rebounds, travel demand is rising and planes are as full as they’ve been in years.