The nonsense about how nobles are supposed to behave did happen in various medieval aristocracies and basically the idea is that without strict boundaries elitism disappears and the aristocrats lose their power soon after because elitism is what keeps everything running smoothly even when the aristocrats are dolts.