Turkey has managed to piss off both the US and Russia and is facing a lot of pushback at home. It's easier to get your way when the press can refer to you as a "strongman" and crushing dissent is a great way to start. Keep in mind also that Turkey's biggest domestic problem is the PKK. The US is backing the Kurds in Syria, who are the same people as the PKK. What the US and Europe and Russia want out of Turkey isn't at all what Erdogan wants out of Turkey and being able to blithely defy international law and trade agreements gives you the ability to do what you want domestically. This whole "my enemy lives in the Catskills" thing he's got going on is entirely about ginning up a gamepiece to play against US hegemony. I mean, Incerlik is shut down at the moment and Turkey has been a strategic partner of the US military for a very, very long time.