Two reasons, I think:
- So Japan would unconditionally surrender to the US instead of (conditionally or unconditionally) surrendering to the USSR.
- As a warning to the USSR to not spread communism further. The Cold War started even before WWII ended.
Two reasons, I think: