They didn't hit an area. They exploded a nuclear bomb in mid air. They weren't even sure if the plane that released the bomb could escape the blast.
It was an air blast, but still accurately targeted. A surface blast would have caused more localized destruction and latent fallout for BDA teams to deal with.