The people you mentioned in the US went through a judicial proceeding which resulted in their imprisonment. We can debate the merits (or lack therefore) of the laws broken which resulted in their imprisonment, but the point is there was a process and a review in place before said people were sent off to prison.
Contrast that situation to China. China has over 1 million Uyghur Muslims in concentration camps for non-criminal, political reasons. Most (if not all) of the said Uyghur people imprisoned were given no judicial review, and have no access to legal counsel.
God damn I hate the whataboutism on HN I see with regards to China - it is really rampant. It may shatter some folks' liberal sentiments but the US really is not the worst country on the block (planet), by a long-long margin.