That's what I was thinking, this is probably a medical problem that is beyond the kid's control, and yet this parent is humiliating them for it.
10 sounds too old to be doing this, I have often wondered why very young children wet the bed, is it because their REM sleep is much deeper than an adult or older child, so deep that their brain does not wake them when they need to go?