Because they met not the Bnei Yisroel with lechem and with mayim, but hired Balaam against them, that he should curse them; howbeit Eloheinu turned the kelalah into a berakhah.