This is more often than not an issue with hemmoroids or internal hemmoroids that can become inflamed if you have hard shits or scratch your anus while they irritate you.
Quite frankly if you are under 50 years of age chances are you're fine
t. doctor science