Despite his troubles, Job remained steadfast. He didn't fault God. THAT is the lesson.
So Job accepted that things just are the way they are. No one's fault. Where's the free-will?