Call the pediatrician. She'll ask about your child's symptoms and about other things that may contribute to bed-wetting.
There's no medical test that can pinpoint the cause of it. But the doctor may suggest a routine urine test just to rule out a urinary tract infection or kidney disease.