Because kids tend to stray from their parent's beliefs because their undeveloped minds can't tell the difference between the care their parents mostly show and straight up oppression. In short, most kids with decent parents don't like being told what to do, so they make the immature decision to blindly go the opposite direction as their parents without thinking. I would know because I was the same way as a kid, my parents took me to church, I didn't like it, so I was atheist for awhile, then I grew the Hell up and looked at my options like an adult and made the decision to turn to God again.