This is how Xi thinks. He let those protests go unchecked on purpose. A boa constrictor always let's it's pray relax before it begins crushing it's bones.
Personally I think Xi messed up igniting this thing when he was legally going to get hong kong if he just waited patiently. He lost a lot of face, and now is facing american repercussions for pushing harder on hong kong :/
People like to attribute wisdom to those who have power but, tbh, acquisition of political power is a weak signal on leadership competence