A generic comment, not all aristocrats sleep with anything that moves, for example the Queen or her father and now the working class are often more socially conservative than the graduate middle classes.
The Bible and Koran and Torah have also been around for over a 1000 years and set the tone for morality. There have also been middle class lawyers, doctors, teachers, academics, merchants etc for centuries too, even if the 20th century and rising university attendance moved more into the middle class and service sector jobs