The many years Moses spent in Egypt and in Midian trained him in unique ways to lead the Exodus. t a shepherd prepared Moses to lead multitudes and their flocks out into the wilderness.