There have been images that I have liked that were shot on train tracks. I can also see the appeal with the leading lines, the all outdoor locations, and the ‘danger’ that is implied.
However, personally I can’t get past the fact that train tracks are Private Property and it is illegal to be on them. And the railroads do not want you there. Maybe this is part of the appeal to photographers.
And this doesn’t take into account the inherent danger of being on the tracks.