There are numerous answers to this question.
In my own case, it's because I don't want to feel as isolated. If people agree with me and appreciate what I do/accomplish, I feel like perhaps they're more similar to me, and thus I can form some bond with this person.
That's my reason. There's a lot of other reasons as well.