This is NOT a transfer of energy.
When the passengers are sitting in the moving car, they possess their own kinetic energy, which is independent of that of the car. When the car suddenly stopped, the original kinetic energy of the passengers throws them forward.