People sometimes answer "yes" to an either/or question as a joke.
The structure of the question is admittedly ambiguous. Some "A or B" questions do legitimately call for a yes or no answer. For example, I recently applied for insurance and the form had a question, "Have you ever been treated or diagnosed for diabetes, AIDS, or Hepatitis?" with boxes for "yes" or "no". In context, this was not an either/or question, like, "Which have you been treated for, diabetes or AIDS?", or "Were you treated for diabetes, or only diagnosed?" It was asking if any of the items on the list applied.
So the exact same question structure could call for different answers depending on the context:
"Do you have diabetes or hepatitis?" probably calls for a yes or a no.
"Do you want vanilla or chocolate?" probably calls for you to select one or the other.
In some cases a person might honestly misunderstand which is being asked. Like going back to the insurance form example, if the insurance company asks "Do you have type I or type II diabetes?", someone might honestly answer "yes", when the insurance company already knows he has one or the other and is trying to find out which one.
And by the way, giving a list of non-exhaustive choices in an "either/or" question and demanding the other person pick one is a classic propaganda technique. I read a gag survey once with the question: "In the past (and probably still in the present) there was a sinister conspiracy between the Scotts and the French to destroy England. Do you believe that, (a) The Scotts are more deceitful and underhanded than the French? (b) The French are more deceitful and underhanded than the Scotts? Or (c) There is nothing to choose between the two?" There are plenty of real "public opinion polls" that are only slightly less blatant.