I hope this it the right place to post

we have 2 wonderful cats, a male and female, both fixed, both about 7 years old but the male has peed twice on my back in bed, both times after me and my wife had sex earlier

is this a thing?

why?

is there any way to discourage this?

any answers would be helpful