We all have struggles. Our thoughts, feelings, and actions in a given moment are a result of the millions of events in our life leading up to that moment. We are shaped by our previous experiences and our reactions to them.
So when we judge others, we are making assumptions that may be unfair.
We also tend to judge others more harshly when we are also judging ourselves.