Well, in many religions, since premarital sex is a no-no (including my own; I am church of Christ), marriage is the way to go, unless you never want to have sex.
Please note, I am not judging anyone else on this, I'm just stating that this is a big reason many marry instead of living together and having kids.