At worst, he's completely absent from personal affairs. At best, he's merely a rabbit's foot to rub when all else fails. But even the best can be the worst for humans. Others see God as a kindly old grandparent, who tut-tuts their misdeeds, no matter how heinous, yet will always give them one more chance. While both images have a degree of truth, neither includes the totality of who God is in the biblical narrative.
Reasons abound for divine displeasure.
Otherwise, righteousness and justice are meaningless. But it can have positive results. Fear can restrain bad behavior. It can mollify a desire for retribution. It can bridle a tongue that would speak ill of another.