Job's friends decided that Job was misguided. They decided that they would explain why this was happening to him. They suggested that Job was being punished for something. They told him that bad things never happen to truly good people. These comments naturally upset Job.
People say a lot of stupid things in the times of tragedy.
It might interest you to know that God had a few words for these friends of Job. God told them that they were a lot smarter when they kept their mouth shut. But I'm leaving my story. Job continues to rant against God. God appears to talk to Job.