It would not surprise me if this plays into my own social anxiety. I have a tendency to screw up everything when socializing. I forget their name. Or never say it. Then I say awkward and embarrassing things that I kick myself for later on. I place a high priority on being oneself at all times, and often this doesn't mesh well with the social decorum of relating respectfully to another human being. So I avoid socializing. It's something I might be better at if I did it all the time. But I don't, so I'm not
Usually real time social interaction goes faster than I need it too. I usually get way too nervous because I need more time to say something the way I feel it should be. With names, if I don't see them well before they say hi, I usually can't remember their names. Even if I have plenty of time, sometimes that doesn't help, and if I haven't seen them in a while, I probably won't remember it even though they remember mine. It looks like inheritance is involved in my weak memory.