You're conflating religion with the use of it by some to get, maintain or increase their power.
Most religions emphasize humility and have at their best been used to prevent tyranny. Judging is definitely OK, it's actually needed. But you know you might be wrong and you don't impose your views on others. That's how we got liberalism.
For instance, all the Abrahamic monotheisms have at their core the idea of the intrinsic value of each individual human as they are made "in the image of God".