We know the proverb “Two heads are better than one”. When people collaborate and are united to achieve a common goal, the probability of success is greatly increased. Therefore any significant activity ever undertaken by humans have always required collaboration whether it be farming or sending the man to the moon.
Rasul Allah ﷺ is telling us that if one is friendly to people there will be greater collaboration & harmony between them, one would learn from people who he is collaborating with and the chances of success are greatly increased.
SubhanAllah. Rasul Allah’s ﷺ ahadith are a source of guidance for us in every aspect of our lives. May Allah SWT put true love of the Prophet ﷺ in our hearts so that we may follow his guidance and sunnah to the fullest.