How were the Japanese able to surprise the US at Pearl Harbor?

How were the Japanese able to surprise the US at Pearl Harbor?