Separation anxiety occurs when infants begin to understand that they are a separate person from their primary caregiver but still have not mastered the concept of object permanence—the idea that something still exists when it is not seen or heard.