The purpose of attachment is to:

Aensure that adults will take care of an infant.
Bmake sure infants are not depressed.
Ckeep infants healthy.
Dkeep infants safe.