Theresa Berkley was a "governess" a dominatrix who specialized in recreating this sort of teacher punishent ritual. I find it psychologically intriguing that this specific spanking fantasy is such a big one, although I guess it's just another form of power dynamics play.
It amazed me also how far back this goes. The fresco I included isn't from Pompeii, but from that same area around the same time. However, there was a huge amount of erotic art that was discovered when Pompeii was excavated which was promptly hidden away as indecent. I think much of it is now in private collections.