So God allows for sin in order that He might destroy it and in the process display His grace.
God is a God of wrath and judgment and justice and holiness and He displays His wrath as well in the condemnation of sinners.