The mind is divided into parts that sometimes conflict. Like a rider on the back of an elephant, the conscious, reasoning part of the mind has only limited control over the automatic, emotional part.
The more we learn about our past, the better we understand our present.