I had no idea that it is this way in Europe as well (PL here). Personally, I don't have an opinion to argue for either way. If anything, the whole idea that a part of rehabilitation must include being locked in with other people in an awful place is repulsive to me.
I'm reminded of this video: https://youtu.be/cX-r5ulpoQQ