Here is why: Half of the population wants to be part of the Western world. They believe in secularity and many other Western ideals. That's how Turkey became a close ally to US, part of NATO and almost became part of EU. Because this half had the control and the other half previously mostly lived in villages and wasn't interested in power. Then, as they moved to cities and as they became influential, the other half of the population took over the country and started applying middle eastern and Islamic ideals instead. And, they have so much ambition and hatred in them. They are ready to replace the democratic republic with a new Ottoman Empire that will probably be similar to Iran.
Expect West to kick out Turkey from NATO or Turkey to leave NATO soon since the islamists see west as evil.