I think the idea is to get the child used to being in the washroom and seeing that adults poop into the toilet bowl.
I grew up being caned because my parents belonged to the spare the rod n spoil the child generation. I still remember feeling nonchalant when my primary school classmates pointed at my cane marks haha. Respectful parenting is trending in my country these days, and I think most of us try to use positive discipline on our children instead. I wouldn’t even know where to buy a cane.