The woman whose child died went to jail too, didn’t she? These are extreme examples.
Of course, parent could groom their children according to their beliefs. That is the whole point. If those parents’ beliefs are destructive, this should be noticed by the society and children should be allocated to a decent family.