If this is an episode of bed-wetting it probably have resulted from combination of two factors, consumption of a large amount of water before sleep, and use of sleeping pills.
Sleeping tablets can make you sleep so soundly that you do not wake up when your bladder is full, and for drinking water try to avoid it right before or soon before sleep.
If you drink plenty of water because of excessive thirst, you may need to check for diabetes.
Also, diabetes can be a cause for bed-wetting in adults.
Stress and anxiety, enlarged prostate gland, sleep apnea are all possible causes for bed-wetting.
Talk with your physician if this happens again and use the sleeping pills only when you really need it!
Best wishes!
Marija