This is called "situational honesty" because most of us are trained to believe lying is wrong, it creates stress. (That's not true with very young children and pathological liarspeople who cannot control their lying because of a psychological problem)