It's the railways in the US that have their own private police force. Soviet and Russian railways had/have dedicated departments responsible for the railways within the larger national police force, because otherwise local police departments along the route would have to coordinate train-related crimefighting themselves.