Criminal justice is a complex issue, and it is no secret that innocent people are convicted every day while guilty ones go free. Furthermore, the role that prisons and prisoner health plays in the process of criminal justice is a controversial one.
Every prison has a duty to the inmates to ensure that their basic needs are met. This means that they remain healthy, fed, and in a sanitary environment. When prisons cannot do this, they are liable to the families if prisoners die under their watch. Families file wrongful death lawsuits against prisons all the time. While prisoners do not make ideal plaintiffs, the government is not an ideal defendant, either.
So what happens now that you have a pandemic going on? Well, some of those awaiting trial have already been released to their families (depending on the charges) while others, who are considered low-risk, are also being released.