Hi Susan, I had this happen with a bitch who subsequently died of hemangiosarcoma of the spleen. Discomfort in the abdomen can cause strange things with the rear end. I would suggest a full blood work up and urinalysis and possibly ultrasound examination.
Rose T.