Places like gitmo aside, almost everyone goes through a judicial process before they're locked up. China has judicial processes too. It's a question of the integrity of those processes.
If you'd like to understand the integrity of the US process, please read The New Jim Crow. It's not at all clear the US process is better than China's.