Because the Woman is a four-way symbol, different.aspects of the narrative apply to different referents. Like Mary,
Rev 12:5 She gave birth to a son, a male child, who will rule all the nations with an iron scepter. And her child was snatched up to God and to his throne. Like the Church, she is persecuted by the Devil after the Ascension of Christ. Like Israel, she experiences great trauma as the Messiah is brought forth (figuratively) from the nation. And like Eve, it is her (distant) seed with which the serpent has his primary conflict.
Conversely, portions of the narrative do not apply to each referent. Like Mary, she is pictured as being in heaven and she flies (mirroring Mary’s Assumption). Like the Church, she is persecuted by the Devil after the Ascension of Christ. Like Israel, she Mary did not experience literal pain when bringing forth the Messiah, but she suffered figuratively (the prophecy that a sword would pierce her heart at the Crucifixion). Eve did not ascend to heaven. And the Church did not bring forth the Messiah (rather, the Messiah brought forth his Church).