 Because it was necessary to demonstrate that Job wasn't going to turn away from God because that in and of itself sends the most powerful message that we have the option to choose. We can't control what happens to us. You don't get to choose if a sniper gets up on top of a building and points a loaded firearm at your head and pulls the trigger multiple times. You do get to choose how you respond.