Life Isn't a Simple Equation
Commentators explain this verse is part of Job's argument against his friends' simplistic theology. He observes that some people die in 'bitterness of soul' after a hard life. Scholars note this could describe either a wicked person or even a righteous one, proving that one cannot judge a person's standing with God based on their earthly prosperity or suffering.