It’s really quite clever.
Think of the damage an imbecile has on your intellect when you have to listen to them.
You have to stop, process it as them/their argument, recall the truth, correct it in your mind and move along.
Prior to germ theory, this set of beliefs would produce much the same behaviours as we would call hygiene e.g. avoiding the objects and physical company of degenerates, probably covered in harmful microbes, and disgust at seeking out sites (even on the human body) associated with filth.
Ostracization wasn’t petty, it was medically prudent.
A term I love that we need to bring back is sexual hygiene.
Immorality, as it was called, was a public health risk.