I live outside the city, so I know the difference in sound at high speed when they pass by. It makes a great difference. Combustion vs electric but also the manufacturing and damping of the wheels etc.
Steelwheel on steel can be very silent.
Steelwheel on steel can be very silent.
I used to live by rails with a small incline, and the diesel locomotives made a loud low noise accelerating uphill from a station, while downhill the trains moved far faster and the engines were quite insignificant compared to noises due to speed: mainly the wheel noise and going over the expansion joints.
One of the reasons, why trains are better suited in theory for long distance transport, than trucks. Little friction, so more energy efficient.