The sentence "Rites can't be punished, and doctors can't be punished" comes from the Book of Rites Quli in the Western Han Dynasty.
Book of Rites Quli: You can't be polite to Shu Ren, and you can't punish the doctor.
Zheng Xuan wrote in the Eastern Han Dynasty: You can't be polite to Shu Ren, because you can't help him and you can't prepare anything. No punishment for doctors, no breaking the law and saints. If you break the law, it is in the eight opinions, not in the punishment book.
Performance:
The so-called "courtesy is not better than Shu Ren, and punishment is not better than doctors" is not the green light given by the privileged class as people imagine, but the more humane performance of the ancient ritual and music system.
"You can't be polite to Shu Ren" doesn't mean that you can be rude to ordinary people, but in terms of etiquette requirements, you can be lenient with ordinary people and don't care too much. The six basic talents required by ancient aristocratic education: etiquette, music, archery, bending, calligraphy and mathematics, are collectively called "six arts".
Among them, "ceremony" includes: auspicious ceremony, fierce ceremony, military ceremony, guest ceremony and Jia ceremony. Every etiquette system has complicated procedures. For ordinary people who can't read, it is too much to learn and abide by these red tape.