Vertical transmission
These infections are also dangerous because a fetus does not have an immune system of its own.  It depends on its mother's immune system.  If the mother has an infection that has not been treated, and her immune system cannot fight off the infection, the fetus will not be able to fight off the infection either.