What time are you putting her to bed? Maybe she's getting up to go potty and then staying up to play for a bit till she gets tired again. My two did that at that age

Maybe put a washable pee pad in the xpen for her so she doesn't rip it up and lots of toys for her to entertain herself with.