What causes Eritrea's high Literacy/educational rate compared to neighboring countries?

Ethiopia and Somalia has higher rates of mobile data/internet access than Eritrea and yet have significantly lower literacy rates. Even Djibouti with a smaller population, higher urbanite percentage and similar authoritative government has a literacy rate that is ~10% lower. What causes this?