The difference is that nukes and - in most countries - guns are harder to find. Regulation is easier when you have more centralised distribution channels. Code is infinitely replicable at marginal cost, and so highly accessible once it's open source.
While I agree with you that the net effect of such technology will be negative, there's no way regulation can keep up.