Is she going to the bathroom more frequently, perhaps small amounts or complain of burning? She may have a urinary tract infection. Very common in girls. You may want to take her in and have her checked.
Anything happened recently could have upset her, any move of home, school new sibling ? Is she eating well does she seem happy have school friends ,is all well at school, does she do this there ?