Questions by their very nature can indeed be judgemental, as yours was. Just because it is a question doesn't eliminate the inference. I'm guessing that you're single and have never asked your spouse a question that they felt upset at the inferred judgement in the question.
They can't.
Making rash guesses about someone's personal details though is incredibly so.