Although didn't some civilizations also think that they were cursed by their gods? I suppose some of them had a mixture of bad gods and good gods, so you could explain the changes in life.
But I sometimes wonder if the Abrahamics have kind of included a similar sort of dualism, but they have stressed that we deserve the wrath of God. So you can have God in full-on smiting mode, but that's OK, because you've been disobedient.
A while ago I read an 18th century diary of a clergyman, and it was amazing to see him twisting and turning to justify the various ways of God. Since he believed in providence, he tried to justify many things - for example, his daughter died, and he saw it as a kind of admonishment.
I suppose this has died out largely, but not entirely. Especially in the US, you still get the 'hurricanes will increase because of gay marriage, and God is very angry' and so on. Even more common is the view that God reduces you a bit, as you were becoming too prideful. It does verge on masochism.
It also seems ad hoc, and a kind of retcon. I mean, you didn't realize you were being prideful, but your comeuppance has made you look back, and realize you were. Hoody, doody.