If it continues it could be her way of telling you that she has a bladder infection or something else. This happened with my beloved cat, KC. Vet said that since they can not tell us what is wrong with them that they will do things out of the ordinary to get your attention.
Something as simple as moving furniture, new person or tension could cause this type of behavior.
I would also invest in a mattress pad to prevent anymore damage to your mattress.
At one time we had a cat that pee'd on our sofa and it took 1 month to get the odor out and during that time we made sure we had no company... I got something from PetSmart just for that purpose to remove cat urine / odor and I also used straight Vinegar as well as lemon juice.
I do hope it was a one time incident and all works out....
~Zig