There was an interesting article in the Guardian newspaper about a couple, mother an atheist and father atheistic but leaning towards agnostic, who were taken aback when their eight-year old daughter told them that she believed in god and wanted to be baptized in the Catholic church.
How did that happen? Because when they moved to a new area and wanted a school for their child, a friend recommended a Catholic school because of its reputation for providing a good education. But it also had a weekly catechism class and their daughter attended it and apparently became enchanted with the whole business of religion and its rituals.
The parents don’t quite understand why religion appeals to their child since their home life is secular but they are supporting her in her decision to take classes leading to baptism.
I think they are right, as long as they do not pretend to belief. You cannot force beliefs on people and it is especially wrong to do so on young children. Where the parents went wrong was in not realizing that one of the functions of religious schools is religious indoctrination, because religions need to do so on young impressionable minds in order to get them to believe all the absurdities that being religious involves. They should have been alert to indoctrination and not have unthinkingly allowed her to enroll in the catechism classes.
But now that it has happened, you cannot counter it by decree. If your child, for whatever reason, arrives at a belief about something you disagree with, you cannot demand that they reject it. You just have to let the children figure things out for themselves by providing alternative ways of understanding the world and hope that they eventually grow out of it.