Neonatal jaundice occurs due to an accumulation of bilirubin in a newborn's blood. In newborns, the liver is not yet fully developed and may be less efficient at processing and eliminating bilirubin from the bloodstream. Factors such as prematurity, certain blood type incompatibilities, and breastfeeding can exacerbate the condition.