2131 Now our Lord mentions a similar case and then draws the parallels. The similar instance he gives is that of a woman about to give birth. First, he mentions the sorrow she has while in labor; and secondly, her joy once her child is born (v 21).
2132 In regard to the first he says, When a woman is in travail she has sorrow, very great sensible sorrow, because her hour of pain has come: "Anguish as of a woman in travail" (Ps 48:6). We can understand this pain as the pain of the passion of Christ, which was the greatest: "Look and see if there is any pain like my pain" (Lam 1:12). We can als...o see in it the pain of the saints when repentant over their sins: "Like a woman with child, who writhes and cries out in her pangs, when she is near her time, so were we because of you, O Lord" (Is 26:17).
2133 Now he mentions the joy when it is over. After a birth there is a double joy: one, because the pain is past; the other, and greater, is over the birth of the child. This joy is greater if the child is of the male sex, since the male is complete, while the female is incomplete and fortuitous. "Cursed be the man who brought the news to my father, 'A son is born to you!'" (Jer 20:15). And in Genesis, when Sara conceived she said, "God has made laughter for me; everyone who hears will laugh with me" (Gen 21:6). So he says, but when she is delivered of the child, she no longer remembers the anguish, rejoicing that the pain is over, but even more for joy that a man is born into the world.
This image is appropriate to Christ because by his suffering he delivered us from the anguish of death and gave birth to a new man, that is, he conferred on human nature a newness of life and glory which were not yet known to us. Thus he does not say, "a child is born," but rather a man is born, because Christ, in his human nature, rose from the dead, renewed, with the newness of a child at birth. This image also fits the Church militant, which walks in a newness of life; and the Church triumphant, which walks in a newness of glory. He does not say, "There will be no anguish," but she no longer remembers the anguish, because even though the saints in glory will remember the afflictions they endured, they will not experience them.
Source: Commentary on John