What you describe might be considered selfless, most parents have kids for fairly selfish reasons. There's (usually) nothing wrong with that, of course, but let's not try to paint a rosy picture that doesn't exist.
But most people's desire to have children center around selfish things, like continuing their family line, or because their parents want grandkids, or because "that's just what you do to get to the next life stage", or because their religion pushes them to, or "John and Jane have such a beautiful child and I want one too", or because they want a small version of themselves that will love them, or truly foolish things like believing a child will save a bad marriage.
And I'm not even saying selfish acts are bad! People do selfish things all the time, and as long as those things don't harm anyone else, so what? But I wish people would give more thought to the social, financial, physical, emotional, and mental implications of having a child before doing so, rather than just taking it as a given that it's what they're supposed to do.
At least there are some people who have kids because they genuinely want to nurture, educate, and mentor a new human, but I'd be hard pressed to find someone who'd say "to ensure the future of humanity" is one of their top reasons for having children.
Having kids is not essential to society. Actually, society would be better off if we just maintained our current population level and learned to live with the resources at hand instead or ever expanding and depleting the ocean, the underground and the forests until there is nothing left.
If you consider having kids as an individual sacrifice, then maybe you are having kids for the wrong reasons.
People should not be forced to have kids to perpetuate society or because its good for the economy or because the government( of any country) says we should.
Could you please explain what happens in, say, 80 years (or so) if we collectively stopped having kids? The answer is this: human beings cease to exist. Now, that may be something you view as a goal to achieve, and in the absolutely trivial (and meaningless) sense that everything (including our existence as a species) is optional you'd have a point. Beyond that trivial and meaningless sense, however, you're simply arguing about how many children we should have.
However, it is changing, as the world develops, fewer people are born and within a century our population growth will flatten and our global population will even decline to the 2000's level.
Children should not be made just to keep society going. That's quite a selfish reason to have a child, to be honest.