The legitimate reason the US had for going into Afghanistan was to capture or kill Osama bin Laden for the 9/11 plot and to capture or kill Mohamed Omar for harboring bin Laden and refusing to give him up to us. Omar died years ago, and we killed bin Laden in 2011. The only reason we have been in Afghanistan since then is because it is profitable for someone, that dreaded military-industrial complex Ike warned us about in the 1950s. As for Iraq, we never had any legitimate reason for invading at all. It was about the money, probably for Cheney and his buddies.