While I cannot relate to that phenomenon, every time after masturbation, I used to feel very at peace with myself/was calmer, and definitely noticed a change in mentality about lots of things. For example, before masturbation when I was addicted, I couldn't fathom going without watching porn or going to sleep but afterwards I would feel completely confident that I would never need to watch porn again and that I could go to sleep (which I figured was the result of those dopamines firing in my head).
Your case may be the same where your mentality changes simply because your brain chemistry has changed (yes, it happens after masturbating).