You did not obey Yahweh. Yahweh was very angry with the Amalek people-group. You did not kill all of their animals, with the result that you did not show that he was very angry with them. That is the reason that he has done this to you today.