Japan has one of the most interesting energy situations of the world.
No domestic fossil fuels, so they rely on imports.
Bad solar and wind potential.
Good geothermal, but the best sites are culturally significant, so they don't really want to industrialize it.
So, many decades ago they looked at the situation and decided nuclear made most sense for them. But as a tectonically active country, it's not really optimal either.