It’s another detective story trope: a question that makes the client give away more than they wanted. They might give an emotional reaction that gives away their true feelings, they might let something slip, or they might just give up pretending and tell the truth.
As a reader, we know that the narrator’s first theory is probably right and the second one is for laughs. It’s the sarcastic joke of a hardboiled character.
Check these examples.