Does she have a UTI?

At her age, you should be able to talk to her about why it is happening? Can she feel the wee coming?

Good luck. It must be very frustrating