God can forgive because He is sovereign grace.
Watch the Teaching: Why is Forgiveness Different in Law and Grace?