I can count in fingers how many from my village in south india from my grandfathers generation went to school or could read/write.
The reason congress first lost power in tamil nadu was partly because of caste based education proposed by rajagopalachari. Mid day meal program was pivotal in MGR's continued popularity . Education has always been key factor in politics since at least independence.
Sure there were exceptions and few kings could seize power with support from their powerful communities . They still remained illiterate though.
Education was only given to favoured few. Only few had access to God. A king could perhaps come from some random caste never the priest. he still comes from brahmins. Access to God and education was and still is weaponized to discriminate
The discrimination against women is the same, sure there were rare exceptions for women queens with power. never a single priest though.