Other people's pleasure is not inherently valuable to me, just neutral. However, I do value other people's pleasure when it increases my pleasure.
It is pretty obvious why this applies to loved ones and friends, but it actually extends to all of society. A happier society is a better place to live, with more productivity, more to be inspired by (and not discouraged by), etc.