Emotions take over the thinking process
When you have a strong emotion(eg. Shame), it can take over your rational thinking process. The thinking process will be co-opted to think up reasons to feel the emotions(eg. I'm feeling shame because I failed in my exams when I was a child) - its looking for some coherent explaination - not the truth.