Gama (Spanish for “range”) comes from the Greek gamma, the third letter of the alphabet: alpha beta gamma. But it came to mean “range” in an interesting way: music. The traditional musical note gamma — which today is just ‘g’ — was used, in classic musical notation, and still today — to refer to the note that is both just below the primary starting letter ‘a’ (hence, on a piano, the ‘g’ key is immediately to the left of the ‘a’ key), as well as the highest note that ends the octave on the other side. Thus, the gamma refers to the whole range of notes!
From the same root, and with the same musical history, we also get the English SAT-synonym for “range”… gamut.
The g‑m root is clearly visible in both.