Here’s the connection:
15 And I will put enmity
between you and the woman,
and between your offspring and hers;
he will crush your head,
and you will strike his heel.” (Genesis 3)
17 And the dragon was angry against the woman: and went to make war with the rest of her seed, who keep the commandments of God, and have the testimony of Jesus Christ. (Apocalypse [Revelation] 12)
It is the Battle of battles: Satan against God. The Virgin is God’s means to Incarnation; the Virgin is elevated by God’s Design to be the Queen whom is sought out by Satan and whose Offspring eradicates Satan’s hold; consequent, the Virgin is made into the mother of all of Jesus’ Followers, coinheritors of God’s Kingdom, which includes the Queen Mother.
John becomes the type for the Virgin’s other offspring/seed.