Have you ever practiced Anon? What do you think about it? Is there a method?
I believe that beyond the physical benefits, it's about being able to clear your mind and stop something contingent like sex from being a source of stress and worry. Then you can focus on yourself and the things that elevate you.
Also, as an exercise in self-control, as a demonstration of will over desires and instincts (testing what differentiates us from other animals and puts us above them). Reserving oneself for marriage and procreation instead of chasing fleeting partners and instant moments that make us feel empty, that too.
https://www.webmd.com/sex/what-is-abstinence
https://www.webmd.com/sex/the-psychological-benefits-of-celibacy
https://en.m.wikipedia.org/wiki/Effects_of_pornography