The storyFrom the military practice of flogging as discipline.Etymology from Wiktionary, CC BY-SA 4.0.