Did Macron's wife's family have money?
They own a chocolate business, not super rich, but probably comfortable. Macron's parents were both doctors, one a professor, so he grew up comfortably too.
He could have gotten a wife young enough to actually give him children, if he wanted to.