China has committed a genocide over the Uighurs and has also peacefully brought hundreds of millions out of poverty in the last fifty years. These two events are unrelated.
Every nation has committed exploitation and genocide but that that is the cause of their wealth is a stretch. Most wealth is generated peacefully.