They were [left], to prove Israel by them, to know whether they would listen to the commandments of Yahweh, which he commanded their fathers by Moses.
Now the groves were the places of worship and usually extremely licentious type of worship.