I dont think we can claim that literacy was more widespread in somalia than in iran or turkey. I mean think about it for a second. The only use for literacy in somalia would be by the relegious class and the occasional merchant. While in a centralized state with a massive beuracrcy like you have in iran or turkey there's a massive need for literacy way more than in a society where most people are pastoralists like in somalia. Second even in the arab world I don't think literacy in Arabic exceed 10% and that's being generous it was probaly closer to 5%. Forget mass literacy Even 50% literacy is simply impossible without printing and on top of the fact that most of the pouplation is ruralBoth were restricted to a small educated elite , especially Ottoman Turkish which persian and arabic accounted for 88% of the vocabulary, was unintelligable to the ordinary Turk and was essentially used by the administrative elite that would also create poetry with it.
The average Turk was not literate in Arabic.
Laqbo would make the average Somali bilingual and literate in Arabic from a young age, so it wasn't restricted to a small educated elite.