There are a few reasons that trains are more expensive generally. Maintaining train tracks, signals and junctions is expensive work, especially where tracks are old. Planes need only fly through the air. Of course the airplanes themselves need maintaining and repairs, but so do the trains.