You shouldn't be spanked or otherwise be punished for that. It's not like you do it on purpose. How often do you wet at night?