What is the Juvenile Justice System and how did it come about?

What is the Juvenile Justice System and how did it come about?