If you're at the top of the buffer, guG will lowercase the whole thing.
So if you open a file, go to type G to jump to a line, but accidentally hit g, then try to undo it with u out of habit, before hitting G again, you do the same thing.