I had a bit of a revelation when I left my last job. There were very few comments from coworkers when I left. I don’t think I was disliked (hopefully?), but I don’t think anyone really considered me their friend either. Looking back I think I came across as somewhat of a NPC to coworkers. I preferred to eat lunch by myself and I only discussed the business topic at hand during meetings unless someone else brought up a personal discussion.
I wouldn’t mind to start more personal discussions, but I’m always concerned it might come across the wrong way, so the furthest I seem to get is “how was your weekend?”