As far as I can tell, this is the point of Job:
Job 35
1 Then Elihu said:
2 "Do you think this is just?
You say, 'I will be cleared by God.'
3 Yet you ask him, 'What profit is it to me,
and what do I gain by not sinning?'
4 "I would like to reply to you
and to your friends with you.
5 Look up at the heavens and see;
gaze at the clouds so high above you.
6 If you sin, how does that affect him?
If your sins are many, what does that do to him?
7 If you are righteous, what do you give to him,
or what does he receive from your hand?
8 Your wickedness affects only a man like yourself,
and your righteousness only the sons of men.
9 "Men cry out under a load of oppression;
they plead for relief from the arm of the powerful.
10 But no one says, 'Where is God my Maker,
who gives songs in the night,
11 who teaches more to us than to the beasts of the earth
and makes us wiser than the birds of the air?'
12 He does not answer when men cry out
because of the arrogance of the wicked.
13 Indeed, God does not listen to their empty plea;
the Almighty pays no attention to it.
14 How much less, then, will he listen
when you say that you do not see him,
that your case is before him
and you must wait for him,
15 and further, that his anger never punishes
and he does not take the least notice of wickedness.
16 So Job opens his mouth with empty talk;
without knowledge he multiplies words."
People act like when they do good they're doing God a favor, but they're not. The fact is that God is God, completely untouchable. Whether you accept him or reject him, live for good or live for evil, it only affects you and the people around you. But remember God is the one who gives you everything you have, as Elihu says later on if God were to hold his breath everyone would die of suffocation.
Even in the crappiest situation you can possibly be in, any little bit of good or comfort you have is from God. But so often people don't give God any mind, when things are good they forget him, and even with a faithful man (like Job) when things go bad they lose sight and accuse God and wonder what the point of their faithfulness was.
The point is that it's not for God's benefit that you do good, it's not to earn a happy life that you do good. God is the judge, yes, and he will be impartial when he deals out justice, but you're not doing good for him. You are to live in righteousness because it is the right thing to do, it is how God designed the world to work. And you are to be faithful to God not for what he does or does not give you but because he is God, your maker and sustainer of life.
Job 36
15 But those who suffer he delivers in their suffering;
he speaks to them in their affliction.
16 "He is wooing you from the jaws of distress
to a spacious place free from restriction,
to the comfort of your table laden with choice food.
The comfort wasn't the blessings we see Job receive at the end of the book, it's a grace-based relationship. The spacious place free of restriction because doing good is not about impressing God or trying to make the cut, but doing what is good because it is good, and drawing near to God because he is your maker and sustainer of life, not anything or anyone on earth.
God is the source of life and all that is good, so if you reject him he wouldn't even need to send you to hell for you to be in it. That's the idea, God didn't just put us on the world and set it spinning, but every moment we rely on him whether we realize it or not. It's about living according to how he made us, fully dependent on him rather than anything of earth, and living righteously.
The book of Job is written for people whose minds are stuck in earthly ways of thought, for people who look at God as they would look at their earthly father or king, for people who have no mind for the spiritual realm or why they even desire certain things in the first place--It's to break man out of religious pride and bring him into true faith and humility before God.