This was because they had not come to the people of Israel with bread and with water, but they had hired Balaam to curse Israel. However, our God turned the curse into a blessing.