I used to live in an apartment complex with a lot of med students/PhD candidates. They were ALL like that. If you spoke to them they would keep their heads down and pick up their pace or cross to another building to avoid you and then come back to their building when you got in your apartment. I always described that entire complex as “aggressively unfriendly.”
That’s because they are all Sheldon Coopers — nerds.