Welcome to HCM.
) is most of the time related to emotional turmoil the child is going through. Consult an urologist
and let him do the necessary tests including ultrasound
scan to rule out any organic cause for it.
If no obvious cause could be detected for this, then he needs psychological counseling, to identify what is the cause of his mental disturbance and correct that cause if possible.
Meanwhile never scold the child for bed wetting, because the child is more embarrassed and worried about it than you, but unfortunately he is unable to control it. Scolding will only increase the problem than relieving. Make it very clear to the child that you do not hold the child responsible for this and that you completely understand that it is not under his control. This attitude from family members may itself cure
the child of this problem
Wishing your child all the best.