Consent to sex doesn't constitute a contract to produce a life
If there is no life involved, the woman is under no contractual obligation to produce one. If a life is involved, any wrongdoing in ending it would be against that life itself, not the father. Regardless, the man's contribution is generally easy to replace.