Where and why high viscosity liquids are used in trains?

High viscosity liquids are used as buffers in trains so that the shocks may be absorbed easily.