Many women don't want to marry the father of the baby, because they can get money from him without marrying him.
Once the baby is conceived, the woman has all the legal and social power. (The man is still bigger, probably, and can kill her.) Men who don't want to spend two decades paying off a woman they didn't even like very much have got to act in their own self-interest and not screw her, even if she's easy.