Many NATO members have strong enconomic links with Russia. For example Russia is building nuclear power plants in Turkey and Hungary, which are in very advanced state of construction for example.
Turkey is only in NATO as a legacy play. They gave up on EU membership a while ago, and have been mostly pushing their own agenda, stepping into the middle east power vacuums left empty by Syria and Iraq falling apart.
They'll lean on NATO when they need to, but they also live next to Russia and don't want to pick fights if they don't need to.