Iran has consistently professed a goal of eradicating israel. Nuclear weapons are the method.
If you loudly declared that you wanted to genocide the British, and started developing nuclear weapons, it wouldn’t be too long before you were prevented from doing so.