I can not talk for the US, but in Sweden it was schooling. I think Sweden has better literacy rates earlier than the US, but I guess I really should compare this on a state level considering how the US works. I am pretty sure that it is a political goal not an economic one, this is obvious considering US black literacy levels took until 1979 to be comparable to whites. I would like to point out that the Danish nobility discussed but decided against keeping poor and oppressed farmers illiterate in the 18th century, so it is not really an issue of globalization.