Q: How come when G isn't in the A major scale at all
A: it's in what you might call the A "cool" major scale, the ancient greek name for that being "mixolydian." which also happens to be the exact same notes as the regular key of D, if you rotate the room around