I think A.I and sufficiently good robotics will bring back class society to those countries that don't currectly have it. Elite will become more powerful, corporate power will surpass governments, rest of humanity will wallow in poverty, since they no longer have leverage in society. Whole world will become corporate driven banana republic.
Far more likely they'll erode class systems in countries that do have them by enabling everyone to have the same educational access, healthcare, etc.
I know a lot of people want everything to be bad for some reason but I think you're gong to be disappointed with how beneficial they are, just like the people who hated autolooms couldn't even imagine a world where poor people can afford nice clothes so ai haters today will be blown away by the huge social benefits of the technology as it evolves.
Why would those countries educate the general public to disagree with local power structures, when they mostly just need submissive cheap workforce.
Government educates people when they are a part of the nations money flow. When educated citizens are assets. In your basic banana republic model the people are not part of it. They are just cheap labor for low level jobs, living on scraps. Educating them is down right dangerous for the government. If needed, educated personnel are supplied by foreign actors exploiting the situation.
Poverty and lack of education are forms of control and are not fixed by injecting teachers or money.