The final explanation is that masturbation is actually a form of self-medication. By cleaning their genitals, males reduce their odds of contracting a sexually transmitted infection.
Squirrels (and birds) around here also eat wild cherries that quickly ferment in their stomaches and get them drunk. It is kinda funny to see a drunk one fall out the tree every now and then.