There are some bad bosses who might do this on purpose because they feel snubbed, but even good ones who are looking out for you will eventually succumb to this. There is only so much time in the day and the human brain likes to save energy by not thinking about things that come up much. If you try to cut out all socializing with other humans at the job and just do the work, they’re gonna stop even remembering that you’re on the payroll.
This can be positive? I’ve seen a few engineers get a niche skill(frequently in some esoteric home grown software) and just work away at that for 40 years till retirement. I’ve also seen some of those same engineers cut because new management came in and wasn’t given the run down on how important they were because the old management forgot they existed.
On some occasions, someone from work has transitioned from a coworker to a friend. That was a natural transition and not something that I needed team building events that compromise my personal time to achieve.
I don't have an aversion to socializing at work. I have an aversion to work trying to steal my personal time.
I do allow for trips at my remote job but only when they are to an area I already wanted to go, and I can bring my spouse along so we basically get a free mini vacation on the evenings. I usually also pair that with staying the weekend before or after as my jobs so far haven’t cared about scheduling a return flight on a different day
There are also times where it just makes sense to all get in one room together and get things done. It’s especially helpful during project kickoffs and design sessions.
Luckily, my company has a very liberal travel policy where my team members can choose one of our offices anywhere in the country and meet up. We just have to be “frugal”. (Guess where I work?)
I don't have the money to just party with them 24/7. And I'd rather go on a teambuilding exercise than write code. And that's the choice for the week.
Also, frankly, I enjoy shifting which groups I socialize with.