Vaccination during pregnancy provides passive immunity to the baby. Antibodies generated by the mother in response to the vaccine are transferred to the fetus through the placenta. This passive immunity helps protect the newborn from infections during the first few months of life, when they are most vulnerable and before they are old enough to receive their own vaccinations.