Why do trains stay on the track as they go around a curve?

In this video Richard Feynman explains why trains don't need differential gears