Mary and Joseph needed to be instructed concerning Christ’s birth before He was born, because it devolved on them to show reverence to the child conceived in the womb, and to serve Him even before He was born.
St. Thomas Aquinas, Summa Theologica, III, Q. 36, art. 2, ad 2.