BostonBarker is right on the money! There are many, many dogs that outgrow being social with strange dogs. This is a normal dog behavior.
Typically, what you see are people that make a real effort to socialize their dogs when young, hang out successfully until the pup is 18 months or so...