These are different sorts of languages from day to day spoken and written languages for general communication, but they can be reasonably put in the same larger umbrella of language.
Whether they should be applied to a graduation second language requirement is certainly debatable. Some school systems may reasonably say yes, others no.
Of perhaps no doubt though is that at the present time, complete fluency/competency in a computer language is far more valuable to an individual than mastery of any language other than english.
Given this, perhaps schools should instead consider dropping the foreign language requirements entirely and replacing them with requirements for fluency in at least one computer language.