Syria: because of threat Assad presented to the free world in general but especially to Israel in particular, both directly, and by allowing Iran to transport weapons to Hezbollah in Lebanon. Neither is the case anymore: Israel is safe from that direction.
Iraq: back back in the day, US really depended on oil coming from the Middle East. This problem was eventually resolved by fracking.