Have you actually been in any European country? Trains are heavily used for short, medium and long distance travel. High-speed rail in Western Europe is huge. Many many people commute via train or subway.
Profitability has absolutely nothing to do with it. High speed rail in France is hugely profitable, but the state subsides many lines because it's the right thing to do. Railways have a higher capacity, are much cleaner and faster, and are provided as a common service. You don't expect the fire department or forest service to be profitable, do you?
I have lived in europe all my life, and have extensive experience with both trains and other forms of public transportation in several European countries.
But often requires you to travel a few hours to a faraway airport. It has its place and is cheaper and faster on specific combos ( e.g. Barcelona to Warsaw), but trains are usually faster/more pleasant/cheaper and always cleaner.
Profitability has absolutely nothing to do with it. High speed rail in France is hugely profitable, but the state subsides many lines because it's the right thing to do. Railways have a higher capacity, are much cleaner and faster, and are provided as a common service. You don't expect the fire department or forest service to be profitable, do you?