That which we do not understand and we perceive as good, we attribute to a miracle of God.
That which we don't understand and we perceive as bad, well we don't blame God for it, do we? Or we say he was "taking little Johnny home to a better place." Well, why were you left here and not taken to a better place? Pretty mean if you ask me.
Selective perception is necessary to religions.