Madness explained in two lines
Fact number #1: Turkey is sponsoring ISIS up to the point of facilitating ISIS offensives into Syria from Turkish territory
Fact number #2: US has the use of Turkish airbases which it uses to fly air sorties against ISIS in Syria
Theoreticaly US planes could be flying from Turkey into Syria to hit Ankara-backed militants who are also attacking from their Turkish bases into Syria.
Meditate on that.