As regards the individual nature, woman is defective and misbegotten, for the active power of the male seed tends to the production of a perfect likeness in the masculine sex; while the production of a woman comes from defect in the active force or from some material indisposition, or even from some external influence... On the other hand, as regards human nature in general, woman is not misbegotten, but is included in nature's intention as directed to the work of generation. Now the general intention of nature depends on God, Who is the universal Author of nature. Therefore, in producing nature, God formed not only the male but also the female.
I, q. 92, art. 1, ad 1 - Summa Theologica (1265–1274)