I think lots of us have learned to factor in the problem of ego verses the truth. I think the "small stuff" we can understand. It's the other things as @Au Naturel said, sometimes what appears as a solicitation for truth is actually just a rhetorical flourish. One that actually wants an explanation so that it can be dismissed. IT'S A TRAP!!!It's not always perceived to be a negative thing, but sometimes truths can be uncomfortable, inconvenient or cause a person emotional pain. People generally want to avoid causing emotional distress which may lead to conflict, and so hide the truth, or otherwise make up a white lie. People who tell the truth may be seen as insensitive for this reason. Telling someone that they are too 'big' for their new pair of jeans may be a fact, and some might just laugh it off and not be offended. Others, however, may have self-esteem issues or recognise the fact, but are in denial, and may get angry or upset at this uncomfortable (literally!) truth.
I suspect the psychology is that in some situations you are obliged to respond to a question and when you do they respond angrily to make you feel like you were being dishonest.
It happened a lot at school when I was a kid. I would make some error and be interrogated by some cruel teacher. I would, in good faith, try to explain myself when questioned but then my truthful responses were interpreted as somehow rude and defiant.
It isn't logical. It's like going to a restaurant and ordering a banana split and when they bring you a banana split, explode in rage at the waiter because it's not steak.
If there is some signal that would indicate when the truth is being solicited and when it's not I don't perceive it.
To me, if I ask for a banana split at a restaurant, I can expect nothing other than a banana split. If someone asks for a banana split, I don't assume they want steak. It's unequivocal. There's no information in the phrase "one banana split please." That indicates a preference for steak.