Do you think any woman deserves 12 weeks salary just because she decided to have a child?
First I note that the question is illegitimate because, like a child yourself, you couldn't resist adding "just because," thereby injecting your (bizarre) subjective conclusion into the form of the question itself. In other words, you are not an honest interlocutor.
As to the real question - minus your personal bias - the answer is that it should be a matter agreed upon between the employer and the employee when making hiring decisions and negotiating the terms of employment.
As to the issue underlying this question and your misanthropic attitude yes, a family having and raising a child is more important than you buying a second home or otherwise indulging yourself individually. It's more important because it benefits society as a whole much more than you alone do no matter how highly you think of yourself. Perpetuating the species and raising the next generation of citizens is immeasurably more important than
you (especially the likes of you). That doesn't mean I advocate the government imposing itself upon private business unnecessarily, but it is true nonetheless.