Because God is perfectly Holy, just, and pure...He has a responsibility to judge all that is not. Otherwise, He wouldn't be Holy, just and pure...He would be something else...something more like us, unholy, unjust and pure...He would be a mere man that judges only based upon external principles.