What is the use of making an atomic bomb?
Since it is a complex technology, and a powerful deterrent against hostile countries, nations feel like making it. There is no guarantee that it will not be used. Terrorist groups and rogue nations are continuously trying to acquire this technology. Atomic energy also has peaceful applications in generating power. Same technology is used in raising an atomic power plant.