Immature pancreatic function is often seen in preterm infants because the pancreas develops significantly during the last trimester of pregnancy. Factors such as premature birth, genetic disorders, and certain maternal conditions (like diabetes) can contribute to the underdevelopment of the pancreas in newborns.