The War on Terror was declared against all terrorist organizations with global reach. Iraq's IIS qualified for that distinction, in addition to which there was a UN mandate to destroy WMD's in Iraq. After 9/11, no American President would have ignored that nexus of the two.
Try paying attention next time.