This can apply to all illegitimate children, but I think that society as a whole is moving toward single parenthood. There are many people who are opting for single parenthood instead of getting married and having children that way.
It isn't always the result of premarital sex either. Many older professionals are relying on sperm or egg donors, surrogates and child adoption to achieve their dream of becoming a parent because they have finally established themselves academically, financially and professionally and they feel that they are finally able to support a child on their own.
Some single parents are also the result of the death of a spouse or s/o.
Some single parents are also the result of rape. So even then, the sex wasn't consensual, it was rape.
Also, raising and having a kid at home isn't always possible due to the economy and cost of living. Many couples struggle with this today and in many cases, both have to work, with one or both parents taking on 2 jobs. This isn't the 50's anymore.
And just because a couple is married when they have a kid doesnt mean that that child will have both parents in the home. My mom was married to my father when I was born and was pregnant with my brother and he still walked away and they were talking about reconciling until my brother was born and he still walked away.
My mom has always worked more than one job to take care of me and my brother when we were young while my father didn't do jack shit except hang with his friends and other women. My mother was pregnant when we moved back to New York in 1987, where she would end up moving in to take care of my great-grandmother who had just recently become bedridden and she would still work 2 jobs and go to college while doing so.
That was how my mother made things work as a single parent and it was how my brother and I ended up being raised by her and my great-grandmother. As I got older, I would help my mom and great-grandmother raise my brother because our father, was never around, and my great-grandmother had gotten older and weaker. My father never sent a dime to help not even for child support.
My mother did it by herself and we would not have a real father figure until 1995 when my mom met my step-father. He is still there for us to this day.
So being married is not a guarantee that you won't be a single parent.
And anyone that would judge and give an innocent child hell because of the actions of their parents needs to take a good look at themselves in a mirror and ask themselves how they are any better than the parents of that child since they are the ones picking on an innocent child.