You are confusing the fascist, secular and genocidal regime of Ataturk with the earlier Ottomans. Ottomans were not secular at all.