B correct me if I’m wrong
Temples were used to honor the gods. Horus, Ra, Isis (Goddess), etc... They would leave offerings to their gods to appease them. Each day they would pray in the temple.
The attack on Pearl Harbor happened because the Japanese wanted to destroy the U.S. Pacific Fleet so it could not impede Japanese expansion through the South Pacific. Japan also hoped to shatter the morale of the United States to prevent it from entering World War II.
Hope this helps :)