They were left for testing Israel, to know whether they would keep the commands of Yahweh that he commanded their ancestors through the hand of Moses.