The railroads in the US are pretty heavily regulated by various US government departments. It makes sense to have specialized police for the needs of the railroad.
It's understandable, but for the most Europeans such police force should be a part of a government or a municipal authority, not a private one.