The conundrum of the Abrahamic religions. God is all powerful and pure good. So where does evil come from? The fundamental problem is merging belief with Greek logic.
Sin was they innovation. Still doesn’t really work, but Augustine filled in a few troublesome bits and here we are.