Avoidant attachment forms when a child perceives that their caregiver is unavailable or unresponsive. This can occur due to various factors including parental neglect, emotional unavailability, or inconsistent caregiving. The child learns that showing distress does not elicit a comforting response, leading them to suppress their emotional needs and become more self-reliant.