They did that because the Midianites and Amalekites from the east always came and destroyed their crops.