Because knowledge is power. Leaving slaves uneducated made sure that they weren't able to communicate with others nor form coherent thoughts which made sense at the time because they weren't necessarily considered human, if anything, at some point in time they were only considered 3/5ths of a human, that is, in America.