Rashi points out
and there was great wrath: For their iniquities were remembered, that
they too worship pagan deities and are not worthy of miracles.
That is that here a nonJew was so dedicated to his idol that he was willing to emulate Avraham but the Bnai Yisrael were not only abandoning Hashem, but were not even dedicated to the idols. The wrath was ...