The imprisonment of criminals is a governments way of fulfilling one of its primary duties, keeping its citizens safe. It’s not 100% accurate of course but I’d much rather take that than wondering if my neighbour will kill me.
If you’re saying a government shouldn’t be locking people up so that an individuals rights aren’t violated, then you’re saying a government shouldn’t be looking after the wellbeing of its people. In which case, you’re essentially talking about anarchy.
But you're agreeing with the GP. Similarly, governments have a responsibility towards the citizens to protect them against COVID, even if that means some temporary lockdowns.
If you’re saying a government shouldn’t be locking people up so that an individuals rights aren’t violated, then you’re saying a government shouldn’t be looking after the wellbeing of its people. In which case, you’re essentially talking about anarchy.