Pilot school is expensive because fuel is expensive and airplanes are (relatively) expensive. In fuel alone, the cost for each flight hour in a Cessna 172 is around $50. You need at least 250 flight hours to complete "pilot school," which would cost, at a bare minimum, $12,500 in fuel.