https://en.wiktionary.org/wiki/cheerio
Maybe it is a conflation of cheers (smiles, thanks) and cheerio (old-fashioned familiar good-bye).