Without a lot more details plus some history it is difficult to know what was the cause of your problem. A quick guess is that your previous BM contained some thing very irritating to your bowels and especially to your rectum. It could be from something very spicy that you ate or drank.