When children are left out of rituals, they may imagine death and funerals as something horrible. A young child may believe they are kept from a funeral for their own safety. Dead people can hurt them. Of course, no child should be forced to go to a funeral. Still, a child may want to attend.
Caring adults can help make it a positive and comforting experience.
Some children may help to make plans. They might choose a song or reading for the funeral. Tell the child what to expect ahead of time. People might be crying. If the child wants to approach the casket, go with him or her.