Hint: look for “lithium ion battery device inside” warning labels.
What is this, open crates or sacks of packages, in traincars locked with a small padlock?
Yes, pretty much. Although in many cases it’s not even a padlock, just a tamper-evident seal device with a serial number matching the paperwork for that container:
https://shipped.com/img-parts/server/php/files/containers/sh...
For huge cargo firms handling tens of thousands of containers daily, padlocks can be problematic operationally and quite expensive.
Once the train is moving again, they go through all the packages on the ground looking for things of value.
With tamper-evident containers, you have a trusted person watch the container being loaded and locked, and then a trusted person watch as its unloaded at its final destination, and you don't have to care what happens at every point in between.
Since there can't be that much profit in this activity, I think it's reasonable to assume that a lot of the people responsible are doing it just because it's easy.