His position on Palestine may have been enough to get him across the finish line, to send a message.
https://en.wikipedia.org/wiki/Zohran_Mamdani
> Mamdani supports the Boycott, Divestment and Sanctions movement. He has denounced Israel's actions during the Gaza war, calling them acts of genocide.