P.M.
Rather odd, for sure. I wouldn't rule out UTI, because symptoms can vary quite a bit. I'd push liquids, including cranberry juice – further reactions today may help you determine whether emergency care is a good idea. You could be in for a very long night. Hope this settles down.
Muscular spasm is another possibility. My hunny has suffered from anal spasms for most of his life, and they can come out of nowhere, last for a day or two, and disappear. They can be very painful.