Social contact leads to the release of opioids in the distressed animal, which functions both to soothe and to teach. Coming into contact with others is paired with this powerful reward, the internally generated equivalent of opiates, and a powerful reward tends to increase whatever behavior preceded it.