Turkey has a long history and due to this long history they have had lots of wars in the past. Their military has gained strong military commanders due to having great experience. The actual Turkish Armed Forces was established in 1920, but the Turkish military had been established and fighting in conflicts long before 1920.
Turkey also has military schools that have created well-educated commanders of the Turkish armed forces. Plus, there is a lot of times when the Middle East was at war with other groups of people. This allows for the commanders to gain actual experience during these conflicts. The only way to actually get more experience that is real is to be involved in wars which Turkish military commanders have done.
Perhaps the answer lies in the Turkish language. The mood positive, to be able, for instance. Turks, like Kurds, were nomads, used to constant threat. This made them alert and ready always to defend their honor. The Ottoman Empire emerged in the 13th century. It was comprised of several cultures and nationalities, but essentially it was Turkish.
This empire stretched from the borders of Iran to Austria, parts of the African Mediterranean coast from Egypt to Algeria. It comprised the three ‘Old World’ continents. The Ottoman's planning resembled the skill shown in ancient Roman not the current medieval pattern, so the battles were strategic, land ahead was prepared, e.g. bridges repaired, food and stores organized.
Discipline was strict, training extensive, with wonderful horsemanship, and later, gun-making skills. The ferocity of Turkish attacks were legendary. Even in the 17th-19th centuries when the Russians successes prevailed during the lengthy Russian/Ottoman wars, the bravery of the Turks was never in doubt.