Then, why does our criminal justice system treat those that age differently than adults?
That is, after all how this became public.
The Duggars delayed reporting this and pulled strings to keep it from being handled by the adult courts to keep Josh out of jail.
So you have a non point.
And, because they pulled strings to keep it from going to court the records were not automatically sealed. That's why all of this was auto be to come out. Manipulating the system prevented the sealing of records which would have automatically happened to protect the girls.
Following the law by all parties would have been a better course, but the Duggar family chose not to.