I just had that happen a few days ago. It's hemmroids. Preparation H cream, or sit in the bath tub filled with warm water a couple times a day :) it won't last long!
Could be from straining or constipation but I would check with your doctor just in case.