My parents are religious and they believed in sex after marriage, so I didn't think it was even possible for someone to get pregnant before they were married. So I thought that once two people were married, god randomly decides to give the couple kid(s). They also mentioned that some people can't have kids so I thought that was completely also random and that god randomly decides not to give some couples kids.