When the lungs are formed the fetus is held in the fluid-filled amniotic sac and so they do not function to breathe.