Use common sense people. You wouldn’t jog down the middle of a road because cars might come along. So same reason, don’t jog on the tracks, because a train might come along.
I was talking to an train engineer. He said people are aware that roads have traffic on them - they see it all the time, and are careful; starting off as little children.
But train tracks are different. Most people only encounter train tracks rarely. And when they do - they are almost always empty of trains. So there is not a perceived threat. The keyword of course being “almost”.