Hello I had a stent removed today after having kidney stones removed a couple of weeks ago,

during the procedure while the camera was being inserted into my penis & I was in obvious pain & discomfort I had an orgasm & ejaculated, is this a rare occurrence in a procedure like this?