When some people open their bowels they can get a prolapse from their back passage.
In some cases this maybe from a pile and in some cases, the pile can be permanently on the outside and cannot be pushed back inside. Occasionally, the prolapse can be more serious involving the lining (mucosa) or the rectum. If you feel that you have something which comes out when you go to the toilet you should visit your GP who can give you an idea as to what the problem is. If you ask your GP to refer you treatment options can then be discussed.