Bill Gates wrote a very touching note on the 25th anniversary of his friendship with Warren Buffett (make sure you watch the VR video!).
It is obvious that they are both immensely intelligent and curious, but it is true that they seemed like very different people when they first met. Buffett was already very successful and wealthy, and Gates was definitely “on his way” to what he (and Microsoft) later became, so there was the risk of ego playing out in their initial interaction. It wasn’t easy at all to guess that they would become such friends.
The lesson here, if there is any, is to be truly humble – intellectually and personally.