You are looking at the population of the country. What is relevant here is the population of large cities. Ie people leaving rural china to live in big cities.
And for US and most european countries, they may have ageing populations with low fertility, but they still have massives immigration inflows.