The quarantines are only one tool in China’s response. They were also quick to adopt masks and contact tracing.
Characterizing quarantines as “locking people up” seems to me the root cause of the mass deaths in the West. The iconography of individualism has trumped the idea that walking around expelling a cloud of deadly material makes you a threat against the life and liberty of others.