Iran takes pride that they're one the oldest civilizations on Earth. If they throw a nuke, they know their culture ends.
Plus Israel has the 3rd most holiest site in the Islamic religion, the Dome of the Rock. Damaging that site would be the worst kind of blasphemy in their eyes.