That’s a maxim you can take right to the bank in any case, but it also refers to the relationships that are formed when people are similarly engaged in doing good deeds for others.
http://www.eonline.com/news/928637/the-history-of-selena-gomez-and-jennifer-aniston-s-not-so-random-friendship-why-their-bond-makes-perfect-sense