Assume for a minute that God created everything. There was nothing before him and everything is because of him. Every single thing in the universe he is directly responsible for.
Somehow the good stuff we should thank him for but the bad stuff is nothing to do with him, it is our fault.
This world that he created that was “good” has turned in to a right shitshow but despite being absolutely responsible for it from start to finish it is not his fault and in fact he has somehow turned this round so that instead of being to blame he is the person who is going to sort the problems and we should be thankful.