So when the train needs to break it generates energy for storage that can be used later uphill etc. Simple and interesting, especially for regions with a lot of variation of heights.
But I did have a moment of joy at the Monty Python-esque comedy it brought on :)