G-d doesn’t show up much in courts. I have been in court rooms, and they are pretty profane places.
God is everywhere. You are just seeing people who have not submitted to God or His ways. They have chosen a path from God, but that does not mean that He is not there to redeem them, the min they turn back to Him. The Lord is a gentleman, he allows people to make poor choices, and go into profane places, if that is what they choose.
Did God not direct the way of the Tabernacle TO the Philistines? Who can push back the Lord from where He chooses to be? The Lord reigns over everything, everyone and everyplace.
Look again, I bet you will see Him.