Iraq offers the carrot of access to oil. A big juicy carrot. US keeps sending troops in every time.
Syria offered the threat of chemical weapons and/or a jihadist takeover. Too small a stick. US & Europe didn’t bother even arming the non-jihadist opposition.