The railway coach is designed with a resonance frequency of suspension of 1.2 Hz.
The human body is most comfortable at 1.2 Hz frequency as it is one of the most fundamental frequencies of our bodies (normal heartbeat).
This is probably the reason why most people sleep easily during train journeys!
Source-Five facts you didn’t know about the Indian Railways - DU Beat