State management. Exit the BASIC interpreter.
QUIT seems to have originated with the unreleased Commodore LCD (BASIC v3.6). I believe it would exit the BASIC interpreter and return to the "system browser" (I guess it was a like a PlayStation 2+ or XBox). In BASIC v7.0, however, it only generates a unique error (see example).