The newborn child needs to train the eyes by looking at something. That's the point of crib mobiles. The bright colours will attract the baby's attention, and the movement as the simple shapes rock and turn with the draught of air will hold their eye, contributing to the development of the baby's optic appartus.
The materials and pigments are strictly non-toxic.