What might be going on here is that the UV induces radiation damage, which leads to endorphin release as part of the body's response to injury and pain. I have experienced this effect myself at times after getting a sunburn; the endorphins blocked the pain entirely and it was moderately euphoric. I know how dangerous sunburns are but if I was a rodent I would likely seek ways to repeat the experience.