From the article:
County health authorities obtained a court order to lock him up as a danger to the public because he failed to take precautions to avoid infecting others. Specifically, he said he did not heed doctors' instructions to wear a mask in public.
If they obtained a court order that means he was afforded due process, and that is really all society owes him. Whatever sympathy I have for him would vanish the first time he coughed in someone's face.