Railroads have their own police force.
If they do not have their own courts and jails then who cares? If they turn over criminals to judges that let them go, police are worthless.