There is almost always something wrong with a person who dies on the rails (e.g. depression, alcoholism). Normal people do not walk near the train tracks.
Actually people do sometimes cross where they shouldn't, or follow the tracks as the only way to get somewhere quick where there isn't a direct road or path. And sometimes it ends badly for them.