Wasn't that simple The Other Guy.
Japan needed oil to continue its campaigns in China. The US Navy was blocking its transport of oil from Japan's Indonesian colony which was the biggest source of oil for the Japanese.
So things got desperate. The Japanese needed to knock the American Navy out of the picture.
The blunder may have been picking a commander too careful and cautious for an attack that required boldness bordering on recklessness.