Why Did Japan Bomb Pearl Harbour?

It is not really known just exactly why Japan bombed Pearl Harbor. I speculate that it was gonna escalate to war at some point so they controlled the situation.