Because of the reward of food, the action of crying is reinforced and the baby repeats it. overtime, the caregiver becomes a secondary reinforcer because the baby learns that they reduce discomfort, so they produce pleasure and thus an attachment forms