The law is there to protect children in the case they have absent/neglectful parents. Unfortunately not every child has a parent as aware as you.
Having children should be a privilege, not a human right. Especially when the majority of children end up being abused either way (either physically, emotionally or both). It is far more common to have abusive or neglectful parents than it seems.