Physicists extend "glass" into "disordered systems". A system can be ordered or disordered in different way, e.g. order (crystal) or disorder (glass) in the positions of atoms, or the simpler case of ordered or disordered spins of atoms (either "up" or "down"). The same phenomena exist in both fields, e.g. glass transitions, so we prefer to study the simpler "implementation", namely spins in a magnetic field.
Computer analogy: we're trying to reverse-engineer an alien ASIC, which can operate either on an array of tuples of three reals, or on an array of bools. It works approximately the same in both cases. The latter case is much easier to analyze, so we prefer to do that.