The difference was that the United States was not taking any action against the attackers before the attacks, but after them, they got involved in fighting against them.
The United States entered World War II, The attacks on Pearl harbor was in '41, the 9/11 Attacks were in '01, the similarity was about Terrorism, threatening the United States.