I never really thought about it much, to be honest. I always assumed that at one point in time, the railway had been used as a major connection between another town or village that wasn't shown in game.

On the other hand, the game script hints that it was destroyed. Or at least that's what Cyan says upon stumbling across it.