You had access to Western tech, a large economy, and a large educated population with little disruptions or conflict. Unfair comparison in general.
-- Turkiye was ruled pro-American Politicans and Generals who did not allow to develop even Rifle
Turkiye developed even Aircrafts between 1936 and 1944 but pro-American Politicans closed Aircraft Factory in Turkiye
and Turkish military projects have risen to 700+ from 50 between 2002 and 2020 led by ERDOGAN
-- The US backed military coups by 1960,1971,1980,1997 always blocked Turkiye to become developed Country
-- Turkiye lost over $400 billion to fight the US/the EU/Israel backed PKK Terror Organization since 1985
-- even since 2013 Turkiye/Turkish Economy under attack by the US/Israel and their terrorists FETO , ISIS , PKK/YPG and Turkish Economy lost over $500 billion
Yes Turkiye paid billions of dollars to get some technologies from NATO Countries like T-129 Attack Helicopter and TCG ANADOLU Amphibious Assault Ship
but no any critical technology transfer such as Engine , Cruise Missiles , GaN based AESA Radars , Frigate , Destroyer , Air Defense Systems , etc
S.Arabia has great oil reserves to fund military projects
and Nobody attack S.Arabia
S.Arabia pays billions of dollars to get missile,radar,corvette,frigate technologies from the US,Italy,Spain,Ukraine,etc
but still S.Arabia will dependent on the US and Europe for decades
for example Turkiye has started to establish national defence industry after 1974 and as of 2020 Turkey is at 65% self-sufficiency now and working to get better at 90+% self-sufficiency by 2030s
They're at it since 80s since before Obama, if you know what I mean.
Iraq was ruled by sunni muslim SADDAM , even Iraq-Iran fought for 8 years
SADDAM was destroyed after invasion of Iraq by the US-the UK
and President OBAMA ( The US ) allowed Iran to control Iraq over shai population and new Iraqi Governments
also the US,the UK,France,Germany,S.Arabia,The Uae provoked sunni Syrian People against nusayr ASSAD Regime but the US,the UK,France,Germany,S.Arabia,The Uae sold sunni Syrian People and President OBAMA ( The US ) allowed Iran-Russia to be in Syria
now Iran and Hezbollah are in Syria who was become more dangerous threat to even Israel