They needed to demonstrate not only the awesome and terrible power of the bomb, but also that it could be accurately targeted (hence, two bombs).
I think it was more to prove that it wasn't a one-off ... that it was repeatable and could be used as many times as is necessary. But that too.