This is because you have enabled Electrified Rail (click the button with the electric symbol in the Railroad Construction window to disable it). I will add code to disable this button in the early tutorials.
thank you!