A music theory class can involve quite a bit of math. Often music theory can be taught as part of a larger music study.
Just as there is room for music theory in a well-balanced music education, perhaps there is room for programming language study in a well-balanced linguistics education. That said, the goals of foreign language classes are rarely (strictly) about the arts and sciences linguistics, but more often targeted more directly towards the arts and sciences of culture, sociology, sometimes anthropology. (Programming languages are somewhat deficient in teaching useful life lessons in these other studies.)
Just as there is room for music theory in a well-balanced music education, perhaps there is room for programming language study in a well-balanced linguistics education. That said, the goals of foreign language classes are rarely (strictly) about the arts and sciences linguistics, but more often targeted more directly towards the arts and sciences of culture, sociology, sometimes anthropology. (Programming languages are somewhat deficient in teaching useful life lessons in these other studies.)