It's easy to get educated if you have the money. In pure capitalism, government doesn't collect taxes, and won't pay for schooling.

And then the parents need to be educated, too. If they are not educated, especially if they have no money, they would rather have their children working as early as possible, instead of going to school, because they don't see the value of education. And the cycle goes on. So first, you'll have to educate the parents.