Because the goal was to use the atomic bombs in the way they thought would be most psychologically impressive to both the Japanese leadership and the rest of the world, and they honestly didn't care that much about Japanese civilian casualties. That is the long and short of it. I've written at some length on this here. But the idea that they were seeking to avoid civilian casualties is just not correct — that was not a priority for them at all, rightly or wrongly.