When the Soviet Union existed they were the only NATO country that actually shared a border with same and Turkey's location provided great opportunities for listening posts etc as well as missiles. Incirlik was / is a great location for an air base. But Erdogan has been increasingly taking Turkey away from NATO.... There is no current rationale for its continuing membership.
Turkey was in it to weaken Russia, so as to facilitate the new Ottoman Empire.