Why do grasshoppers have five eyes?

Many grasshoppers have five eyes as a defense mechanism. This allows them to see farther and wider, allowing them to evade predators.