Shakespeare was written for the masses. Hence being full of dick jokes.
Similar story for Chaucer, and so many others. I don't think good writing, things we appreciate so much it lasts generations, has much to do with signalling education or class.