For example, people experiencing persistent mental health issues would literally be locked up "for the common good".
I think what we are seeing is people trying to use technology to replace earlier (primarily social) technologies of control like shaming, religious instruction, tighter communities, aggressive policing etc.
It's not the amenities themselves being reinvented, it's new techniques of social control to uphold good behaviour and care for shared resources.