Completely accidentally!
I was very drunk one NYE and ducked down what I thought was a side street to take a piss. turns out it wasn’t a side street and I was on the grounds of a church in my home town. I started to take a piss but realised i had to puke as well. I started getting sick and only noticed that I was doing all of this on a grave when a police officer shone a torch at me.
I only got away with it as my then-GF managed to haul me away and placated the police officer. Still very lucky I didn’t wake up in a cell that morning.