Amnioinfusion is primarily performed to alleviate complications such as oligohydramnios (low amniotic fluid levels), meconium-stained amniotic fluid, and to reduce the risk of umbilical cord compression. These conditions can lead to significant fetal distress and, if not managed properly, can result in adverse neonatal outcomes.