The Bible say God hates Sin and even on the Cross, when his own Son died, he could not look at Sin and turned his head. In Job 2:1 it says “..and Satan came also among them to present himself before the Lord” In Revelation 12:10 it talks about the accuser of our brethren cast down, which accused them before our God day and night. Satan is the ultimate in sin itself, why/how can God tolerate Satan in his presence?
The Lord hasn’t explained all the details of His plan to us, and it’s His right to keep some things to Himself. Colossians 1:16 says all things were created by Him and for Him. Satan is a created being (Ezek. 28:13), so that tells us he must serve some ongoing purpose in God’s plan. Since the Bible doesn’t explain how God can tolerate having Satan in His presence, any explanation I could offer would be pure speculation.