How come sometimes anal hurts...?

And other times it doesnt? This is all with the same sex partner, but how come sometimes I enjoy it and other times it leaves my ass bleeding?