An interesting question and comparison, the lockdown is causing me anguish and feelings of claustrophobia, I imagine it must be a lot worse being incarcerated.
Of course some people need to be there but we should be treating them with dignity and trying to rehabilitate them. In the US prison is a big corporate money maker.