Because of EU influence: Turkey acts like a bottle cap to seal the wave of refugees coming from ISIS war. That's why they are tolerated.
EU gave Turkey a lot of money to keep the refugees, fleeing from Middle East wars, away from entering en masse in Europe.