It’s a trap, they took their other device and will beat the piss out of them when they use “find my phone” or whatever. They’re stuck on a train with them until the next stop…
You would have to be an absolute muppet to steal an electronic device (or anything since AirTags exist) on a still moving prison.