During pregnancy, the body produces more blood and bodily fluids to support the developing baby. This extra fluid can lead to swelling, particularly in the ankles and feet. Additionally, the growing uterus exerts pressure on the veins, which can impede the return of blood to the heart and cause fluid retention in the lower extremities.