Part of that contributes to better life but I'd say the majority is because of Capitalism. This form of Capitalism is initiated by the government so there is not much to check its power.
Essentially, if you look at housing, cost of education and cost of medical services, you will understand why middle class in China does not want to give birth to children.