It helped that his “R” opponent was practically invisible.
And that the liberal Gloomberg was unpopular. So the voters elect someone WORSE. That’s what happens when you let ultralibs use the GOP ballot line.