Because some children might have the bad luck of being born to dumb parents who do not value education. Ensuring that those children should not suffer and every member of the society grows into a well-educated adult who can contribute back is certainly a national need.