Not a very technical answer, but I think its because the power line is not continuous & has breaks in it in various places. As the contacts under the train run over one of these gaps the current doesnt go through for a few seconds making the lights flicker.