T.M.
It sounds like something is bothering her at school. It could be she is afraid to use the school restroom. I know I was when I was little and moved to a new school. I would wait till I got home. Try to lovingly get to the bottom of the issue. Give her lots of praise and positivity before addressing the negative subject. I hope she opens up her feelings to you.