Also, you're at a social event, where people are supposed to be pretending to be humans. Fuck you for making me think about work during my time off. With all sincerity.
If I ask people an ice-breaker about activities, I ask them what they do for fun.
I myself ask this question now and then just because there is nothing else to talk about.
If I ask that question and someone says something like that (or similar avoidance stance) then I know they're very likely insecure or uncomfortable talking about their choice of work. You can read into that a lot to get various ideas but I like to use such things to put together a whole picture of a person.
I, personally, like the question.
Perhaps the person didn't choose their work. They want to be a professional developer, but right now they're working in Starbucks.
Perhaps they don't want to tell you, because they're sick of people fawning or acting strangely towards them. I've spoken to a fair few people like that - say they're a hedge fund manager or whatever, they don't want to bring that to the pub and basically wave the fact they're a decamillionaire in your face.
How many people really want to talk about work when they are are having beers with old friends and some people they just met?
And what happens as a software dev when you tell random people what you do? They want you to fix their computer for them. My hobbies don't have nearly this degree of problem. And on the flip side, you don't want to recruit people when talking about some of your interests (like volunteer work). But that's an easy habit to break when you know so intimately what being volun-told feels like.
I had a longer answer that I trimmed down but that's one of the reasons you can guess why someone isn't saying why they do what they do.
Chances you're interacting with a decamillionaire is much lower than vs someone who doesn't like to mention [insert not typically viewed as a great job here].
There are no assumptions here - just likelihoods.
I used to describe myself as 'semi-retired' and people seemed a bit baffled. I think they interpreted it as me being some sort of trust fund guy, when the reality is, other than the odd toy, I just live as if I earned about minimum wage.
And everyone is expected to be working all the time otherwise they must be in trouble somehow, despite the fact that at least 50% of people in Western countries earn enough to not need to do that.
I've had periods, I suppose you would call them 'sabbatical', in which I've mostly just mucked around. Learned a new language. Fiddled around with IoT stuff. Done some travelling. Read a lot. Just enjoy life.
During that period, what am I? I'm just a guy. Historically I did software development for work. In the future I'll probably do the same. But that identity of full time employment just doesn't exist.
I generally joke and say I'm retired or that I'm an open source developer or whatever else. But of course that's different coming from someone who won't be hitting government retirement ages for a few decades.