The fuller answer
Bedwetting, urgency, small leaks, and daytime accidents can happen for different reasons, including deep sleep, constipation, urinary infection, diabetes, stress, pelvic-floor issues, medicines, and developmental variation.
A leak is not laziness or deliberate misbehavior. Shame and punishment make it harder to ask for help and do not treat the cause.
New wetting after a long dry period, pain or burning, fever, extreme thirst, frequent urination, weakness, numbness, or loss of bowel control needs medical evaluation.