Also rail networks require far more staff, and cost a huge amount to maintain. Trains have very large economies of scale, where the cost of journey rapidly come down with large volumes of passengers. Flights don't benefit from anywhere near the same savings when scaling up.