It is a myth that Muslim’ countries are never secular.
The world’s largest Muslim majority country is Indonesia, which is secular.
In reality majority of Muslim majority countries in the world are secular. Several large examples include Turkey, Mali, Syria, Niger, and Kazakhstan.