This quote means that even though the Catholic school the person went to was strict, often using punishments to maintain control, it created an environment in which a sense of humour could develop. For example, the students could often joke about the rules and punishments to ensure they remained lighthearted despite the strictness of their school.