I have found that sometimes old dogs are sometimes prone to this, and it can be a surprise. I realized, for example, that my 15½ YO boy has started drinking more, but I didn’t notice that until there were a few “out of the blue” accidents that seemed sudden. Now I monitor as well as I can, and take him out more often. I hope your girl is OK!