My 8 yr old just had this happen. He has had diarrhea issues his entire life, but never this. It is called a prolapsed anus, and even if it resolves in its own, u need to go to vet for antibiotics and to discuss possible causes. It’s not normal, but can happen when straining.