I’m thinking this is what people mean by “taken out of context.”
It’s also what known as a “gaffe”.....accidentally telling the truth.