Considering the whole premise of Exodus is bullshit in the first place, you're begging the question by trying to answer what could have been interpreted as god's wrath.
Even if the open windows of science at first make us shiver after the cozy indoor warmth of traditional humanizing myths, in the end the fresh air brings vigor, and the great spaces have a splendor of their own - Bertrand Russell