Why do men get women pregnant before marrying them?

If they really love them and agree on the baby why not marry her

Why do men get women pregnant before marrying them?
Post Opinion