What does it mean if a guy asks a girl if she has a boyfriend?

Anonymous
My friend who I’m slowly getting to know asked me if I had a boyfriend and then asked if I have a husband to which I said no to both. He said he has no girlfriend. If a guy asks you that, does that mean he could be interested in you? It was quite out of no where and off topic when he did ask so I’m just wondering?
What does it mean if a guy asks a girl if she has a boyfriend?
2 Opinion