The nukes were primarily dropped as part of the US's shock strategy, which was focused on ending the war (with the terms the US was offering) as quickly as possible, and by extension saving US lives. It wasn't meant to do save Japanese lives, that's arguably an unexpected accident, historically...