I just thought of something. I grew-up having to “dress” for church and wearing a uniform to go to school. Both places good behavior was expected and enforced.
Perhaps there is some sort of pavlov response for “dressing” and good behavior.