The piece of knowledge which is still missing, and which you should direct your search if you feel the way you outlined in your post is, what's consciousness? What're the mechanisms by which it functions? We might be biological machines with a single, hardcoded directive in one sense, but it's very inside the realm of possibility we possess the potential to escape that.
There are basically three possible answers to that:
1) The scientific one you alluded to. Our purpose is to make our genes survive (though that in turn serves no greater purpose, that's just the mechanics of evolution)
2) religious / spiritual reasons, if you believe in those
3) the realization that a rational meaning (or lack thereof) doesn't matter much if you feel a sense of purpose
Having kids moved me pretty firmly in camp 3), though I realize the irony that that's a direct consequence of how 1) works :-)
Indeed.
Oh, and having kids must bring joy, that's how evolution programmed us, otherwise at some point people would just consciously stop having babies and we would dissapear :-)