These are usually due to a child passing a hard bowel motion at some point and tearing the delicate anal margin and because faeces is passed through this area continuously it is often difficult for this to heal. Anal fissures can occur causing painful defecation and some blood which is usually bright red and usually coating the faeces.
A simple anal fissure will resolve if the faeces are kept soft with laxatives.