Interestingly enough, if i recall correctly, they did that because of the agreement they had with other Axis countries where the US formally declared war on Japan after Pearl Harbor, and Germany/Italy essentially had to declare war on the US in response.