Regarding China, the book "Guns, Germs and Steel" gives the following explanation: due to a lack of major geographic barriers, China became unified under a single rule early, and subsequent irrational decisions by despotic rulers brought stagnation. In contrast, it was impossible to unify Europe by force in pre-industrial age, hence the ongoing competition (and resulting development) between all the states.