To help put that in perspective: Iran's GDP today is a ~7x stronger than Iraq's was (in 2003) relative to the US GDP at each time.
In other words, they can spend more on military stuff making them a tougher opponent by default. Plus multiples of population, more land-area, etc.