Why did hiroshima and nagasaki drop the atomic bomb on Pearl Harbor?

Japan did not drop the atomic bomb on Pearl Harbor, they dropped regular bombs and declared war on the US because the US imposed an oil embargo on them. The US dropped the atom bombs on Hiroshima and Nagasaki to force Japan to surrender.