No, it wasn't. In fact, even in the earlier times, when Christianity was giving out the licenses, they did not allow divorce or even annulments just for infertility, especially infertility of the woman.
13 surprising facts about marriage | MNN - Mother Nature Network
In many early cultures, men could dissolve a marriage or take another wife if a woman was infertile. However, the early Christian church was a trailblazer in arguing that marriage was not contingent on producing offspring.
"The early Christian church held the position that if you can procreate you must not refuse to procreate. But they always took the position that they would annul a marriage if a man could not have sex with his wife, but not if they could not conceive," Coontz told LiveScience.
But again, we are discussing the current marriage laws, not what you presume the laws came from or were "always about". You are wrong because they were not always, everywhere about procreation or even raising children.