In poor countries, when a family can send a child to school, they tend to choose the boy. From early childhood, the girl is relegated to housework or has to work to help her family.
Out of the 774 million illiterate adults in the world, 2/3 are women. The proportion of illiterate women has not changed in 20 years*.