This is not unusual, if you have TB, not undergoing treatment and are a risk for transmission, public health officials and law enforcement may involuntary hold you until they decide you are a risk for transmission. This has been true for over a century.
You need to re-read the article. You don’t have to have COVID-19 — they need only “suspect” you of having it. This is straight-up banana republic territory.