What kind of religion is it that would encourage the parent to shelter the child from any outside influences and punish it by putting it out in a world you never had any way of learning about?

What kind of religion is it that would encourage the parent to shelter the child from any outside influences and punish it by putting it out in a world you never had any way of learning about?