one of the major reason for illetracy is uneducated parents also, and sometimes parents listen to their relatives and friends suggestion that there is no need to educate your daughter because she wil get married and not be able to earn money.
other reason is money, every where in India where you go, you will find donation is there for higher studies. That's why middle class parents can't  afford their child for education.