Virginity was associated with holiness and purity going back to Old Testament days. However, while it was insisted that this gift should be brought to the marriage bed undefiled, the main emphasis among the Jews was fruitfulness and progeny. The promiscuous woman was understood as damaged goods and unclean. The barren woman was viewed as cursed. We see this latter sentiment with Abraham and Sarah and in the New Testament among Zachariah and Elizabeth. Sacred tradition indicates a similar situation with Joachim and Ann, the parents of Mary. These women rejoiced because God gave them a child and took away their shame.
“Sons are a birthright from Yahweh, children are a reward from him” (Psalm 127:3).
“Your wife will be a fruitful vine within your house: your children will be like olive shoots around your table…may you see your children’s children” (Psalm 128: 3,6).