To elaborate a bit more than just budget/marketing, AAA games used to be distinguished from AA titles.
To be a bit of a pendant, “AAA” was basically the marketing term to denote a game with a larger budget. The term “AA” came around afterwards as a way to distinguish games that fell between smaller indie games, and larger budget AAA games.