Moses' arms and staff must be held up to win the battle!
In Exodus 17 it is a little hard to know why God used the imagery that He chose to use. The Israelites are traveling in the wilderness after leaving Egypt, and the Amalekites attack them: