That's because they hadn't given the people of Israel food and water. Instead, they had hired Balaam to call a curse down on them. But our God turned the curse into a blessing.