It's his idea of a joke, I suppose, the scallywag.
"The little scallywag, " said the headmaster. "I'll bet it was him all the time."