It also happens that some women have sex with a guy, get pregnant on purpose to hopefully get married. Most times that does not work out and the children suffer.
Knowing very well in advance the most likely outcome, they still try.....