Well, maybe if foreign countries would leave them the fuck alone to do things like control and develop their own infrastructure and natural resources; they wouldn't require nuclear weapons just to get some peace and quiet.
The last couple decades has proven that's the only deterrent that actually works.
Wouldn't you hold a grudge after having your rapid progress towards technological and ideological growth completely derailed by a coup orchestrated by a foreign power that plunged your country into decades of chaotic religious fanaticism which suppresses freedom/human rights to this day?
Especially when that foreign power continues to threaten your existence and expand into territory surrounding you?