Penny also did this when she was about 2 years old, from memory. She was scratching around making a nest with the bedsheets, and then right in front of me she crouched down and did a wee in the bed. I was horrified. I never worked out why and she's never done it again. I didn't react , I just took her outside. Strange little things aren't they, our cockers!