The quick and easy answer is because the State of New York requires children under the age of 18 to do so. The more complicated answer has to do with being a responsible and informed citizen and adult, and in order to be that, you need to know things: mathematics, how to diagram a sentence, how to construct a paragraph, biology, history. Even cooking and flying an airplane are skills that would be incredibly useful.