I heard that the Kli Yakar states that the source of the sin of Lashon Hara is the human tendency to focus on the negative side of life. So, naturally, when you focus on the bad side of things, you end up talking negatively also about people and speaking Lashon Hara.
I tried to find where the Kli Yakar brings this idea, but I couldn't. Does anyone know where it is written?