The American train system is also drastically more expensive than the Swiss train system.
Switzerland moved all trucks to the rails to get more capacity on the streets (successfully). So this investments paid out. Fewer traffic = fewer stressed people = more productivity = fewer lost hours