Iraq, Afghanistan, Syria

If we pulled out of Afghanistan and Iraq why are US forces still in Syria? And why are they killing ISIS leaders?