When the Jews left Egypt, G-d did not take them the quick way up through Gaza lest they be scared by war. Instead, he took them the long way around to help turn them into a nation.