During the Depression, when Prohibition made gangsters rich, they used slang "grand" for a thousand dollar bill.
So "G" was short for "grand".