While Moses was holding his hands up, Israel was winning. When he let his hands rest, Amalek would begin to win.