Mudchicken gave you the answer, in a way.
He mentioned harmonic swaying.
If a railcar in a train sways, part of that motion is also transfered to the car ahead and behind, which in turn makes the car its attached to sway, so forth and so on, through the entire train.
Of course, as this motion is transferred from one car to another, some of the enegry is spent and negated by the suspension system, and the sway gets less the farther down the train it travels.
At high speeds, it isnt too noticable, as the suspension system in the cars are designed to react best at a certain rate, between 60 and 70 mph
Mudchicken can give you the correct or true speed, he has to design track to match the type of traffic/weight.
But at low speeds, around 15 to 20 mph, the suspension system cant react fast enough to dampen or cancel out the sway.
In fact, it can enhance the motion, to the point it balances the side to side motion almost perfectly, if the car tilts 5 degrees to the left, the suspension system will push it back just hard enough to make it sway or tilt 5 degrees to the right.
Because all the cars will pass over the same point on the track that causes the sway in the first place, a frog or a rise/ dip in one rail, they all get the same amount of “bump” to start the swaying.
Because they all share almost the same amount of sway, and each car contributes its enegry to the motion of the entire train, and to the car ahead or and behind, it can continue for quite some time, all the cars end up contrubuting the same amount of sway in harmony.
I have seen entire trains look like they were doing the “wave” you see sports fans doing at ball games.
Its a wild sight!
Due to the fact that all the cars are not exactlly the same, some loaded, some empty, different springs and construction, eventually the harmonic motion will be interupted, and the suspension system will slowly cancel it out.
One car wi