Friendships aren’t just about keeping score. New psychology research looks at why we help our friends when they need it.