I've wondered about this, too. To me, it seems that Sherlock has internalized some of John's Not Very Nice comments about and to Sherlock over the years. How sad that that's the impression Sherlock's been left with, when it comes to what John gets out of their friendship.