CCC 1620 Both the sacrament of Matrimony and virginity for the Kingdom of God come from the Lord himself. It is he who gives them meaning and grants them the grace which is indispensable for living them out in conformity with his will.1 Esteem of virginity for the sake of the kingdom2 and the Christian understanding of marriage are inseparable, and they reinforce each other:
Whoever denigrates marriage also diminishes the glory of virginity. Whoever praises it makes virginity more admirable and resplendent. What appears good only in comparison with evil would not be truly good. The most excellent good is something even better than what is admitted to be good.3

1 Cf. Mt 19:3-12.
2 Cf. LG 42; PC 12; OT 10.
3 St. John Chrysostom, De virg. 10, 1 PG 48, 540; Cf. John Paul II, FC 16.