AHD4 seems to indicate that the railroad train usage is derived:

http://www.bartleby.com/61/69/C0006900.html