Men still promise women before sleeping with them that they'll marry them if they get pregnant. 
It took time for men to recognize that they did not have to promise marriage in the event of a pregnancy in exchange for sexual relations.