Furthermore, the characterization of China being "totalitarian" is wrong because China is in no way comparable to the likes of North Korea or Saudi Arabia. You should check out the works of political science professor Daniel A. Bell: https://youtu.be/ckt94_JWHPs
This isn't a "coincidence". The Chinese government has evolved to its current form because of Chinese values. The CCP won the civil war because it had support of the majority of the population.