The big difference being that Iraq had started a war (violated UN rules) and so was bound to the treaty while Iran has not violated UN rules and "volunteers" to this treaty.