It's normal; your rectum and anything that is still attached to it still sloughs off skin cells as well as mucus, and eventually, it has to come out.
You will probably find that this will continue to happen every once in a while.
I have a 4 cm rectal stump, and every few months I get really bad cramps. I accidentally overtrained my rectal sphincter muscles when I briefly had my ileostomy reversed, which was a nightmare, as I had to run to the loo sometimes over 30 times a day. I didn't want to end up having an accident, as there are no toilets between our nearest small town, which is a half-hour drive from our home in the country....
My specialist sent me to a physiotherapist who specializes in getting people to tighten their pelvic floor muscles and that sort of thing, but she said that she couldn't undo what I did. The only thing apparently that could help was a Botox injection in the anus, but I really didn't like the thought of that.
So now I have to wait for my rectal stump to become inflamed, as I am not allowed to use a small enema to help me get rid of it just in case I accidentally pierce my rectal stump.... The contents become a liquid, and it then comes out in explosive diarrhea (just a small amount - but unpleasant to say the least).....
I've found that not a lot of people are told much by their surgeons about rectal stumps - this procedure is called a Hartmann's procedure - and so many people are shocked and dismayed when they discover that they have a small bowel movement every once in a while.