Was it wrong to ask my gynaecologist if he was single?

All I said was "I don't feel a wedding ring, are you single?"

Now I'm not allowed back, why is that?
Was it wrong to ask my gynaecologist if he was single?
Post Opinion