Earlier quoted context omitted.
Australia, NZ and many countries in Asia did just fine. You just need a government that has its shit together and a populace that complies with the government. When you're missing one or both of those elements of course you're going to have problems with a pandemic.
So both China's government and 1.4B populace have their shit together, fully solved at ~0 infections pre-vaccine for one full year now, but the US, the EU, the newly non-EU UK, and (to a lesser extent) Japan all failed miserably?
Also there may well be areas of China where the virus never reached. I gather internal travel isn't massively widespread, and the severity of the lockdowns they imposed exceeded anything seen in the US or UK.