I'm not sure if this is driven to incentivize having children, but the more general point of incentivizing children for the good of society is a valid one. A society that stops having kids (or importing them) will cease to be a society before too long.
Or, a society will just start having children again once the population gets small enough that having children becomes a more optimal decision or the supply of things that make having children optimal is increased...