We have a surprising number of first time posters to Mamapedia who talk about pee, but who do not provide any additional info. Most are kids and trolls, but a few others are legit moms who nevertheless give so little detail that it's hard to know where to start. That's why you'll see a whole bunch of questions coming back to you, with the obvious or implied request that you edit your question and put "ETA" (Edited to Add) with additional details. (If you don't, people may assume you're a kid or a troll.)
It would be incredibly helpful to you if you read through some prior questions to see what else has been discussed on this topic, and also how the best questions are worded on this site.
So, a lot of kids have nocturnal enuresis, which is nighttime bedwetting. It's more common than you think, it's not dangerous and it's treatable with a very simple and well known medication until the child (sometimes as old as 18, per our pediatric urologist) outgrows it. It's a developmental thing, not behavioral. So it's out of her control. Do not scold or criticize, do not punish her, but DO get her to the doctor so she can start to enjoy life by having or attending slumber parties, going camping, and more. We got our son to the doctor well before the age of 11, and I'm so glad we did.
And if it's not urine, I think it would be an incredibly great idea to talk to the pediatrician about it. Don't you agree? I'm sure it's something quite simple but the doctor will ask the right questions without shaming your child.