Actually, he probably was....and agreed to the “lie” so she would not be put to death for getting knocked up out of wedlock. If it wasn’t his, he would have declined to marry her.
"If" any of the participants, so to speak, were real, you have an extremely valid argument. Of course, Maury is real.