Hi. Pooping in sleep also known as encopressis is not normal and the commonest cause is constipation. You have written that your daughter passes stools after each meal... what is the quantity and type of stool? Without complete information I’m unable to guide further, but this is certainly not normal.
Next Steps
Please consult someone, even online is okay to start with.