The Lord wants us to know Him. That means He has to reveal to us what He considers good and what He considers evil. So, He willingly demonstrated His wrath and power so that we could know Him better,

But because of His love and compassion He endured those vessels of wrath, not wreaking judgment on them immediately.

Those vessels of wrath fitted themselves to destruction. the Lord did not do it.