They've been able to stem the virus and get back on their feet again by effectively introducing marshal law, a situation where you do as you're told. Communist dictatorships are able to do this. Not so easy in democracies. Look what has happened in Italy where when told the Northern part was being quarantined, thousands just upped sticks and headed south to stay with friends and family taking the virus with them. That definitely wouldn't have been allowed in China.