>>12572344He was sick of being told what to do by God so he started using his power with his own agency. This corruption ended up in humans learning how to sin. God was mad so he gave Satan what he wanted, an entire realm outside of him where he can do whatever he wants. But because there's no goodness or prosperity outside of God's one path, Satan was left to create an infinite variety of failures and sufferings.