Apparently the Ayatollah wasn’t paying attention when Saddam got his ass kicked. Libya’s Gaddafi paid attention and went through back channel diplomatic efforts to give up his nuclear program.
Interesting little known fact about Saddam Hussein and Iraq: after Saddam was toppled, over 500 tons of yellow cake uranium were quietly extricated from Iraq. It was not publicized while it was happening for security reasons. There were legitimate concerns the shipments could be attacked and turned into a dirty bomb.