US railroads still have common-carrier obligations -
https://www.freightwaves.com/news/what-does-the-common-carrier-obligation-mean-for-us-railroads - and also can't completely withdraw freight service from a line without Federal Government permission. But nearly all the wayside freight depots/stations disappeared years ago, so the service obligation is basically to haul freight vehicles from one place to another for a customer at a reasonable commercial cost.
US railroad operations are interesting, considering the supposed ruthless business efficiency culture in America, and it being the land of big rig trucking. Not so much for rail transport of parcels or the odd, one-off crate of goods from A to B, but for the apparent survival of so much wagonload (carload) freight in the US.
I've made a number of trips on Amtrak's
Pacific Surfliner between Los Angeles and San Diego, and it always surprised me, passing through the industrial areas of LA, how many short sidings still branched off the main line into the yards of smallish and medium-sized businesses alongside the tracks.
Some of these connections were obviously long-disused - but a good number might have a rail tanker, or a boxcar or two parked up behind the chain-link fence. While the freight cars usually looked shabby and covered in old graffiti, they didn't seem abandoned or derelict rolling stock. Presumably every so often a '
switch loco' would turn up and collect or deposit more wagons.
I wondered if some of these businesses used the boxcar or rail tanker not just for transport but as convenient short-term storage on their premises, in the same way a British firm might keep a shipping container or two in its yard - in the UK case being collected and delivered on the back of a lorry.
To move this sort of wagonload traffic between marshalling yards and customers, there is still a
substantial number of local
shortline railroad companies operating throughout the US (many of which are now subsidiaries of Genesee & Wyoming - current owners of the UK Freightliner FOC).
I've never really understood why single wagonload rail consignments have seemingly remained economic in the US and Canada, while concepts like BR's Speedlink died such a quick death decades ago. I suspect there are multiple reasons beyond residual common carrier obligations. Maybe a topic for a separate 'international' thread?