The latter are used as emotes during matches. And to unlock them at the beginning of the game, you should scan Brawl Stars QR codes. The developers release these QR codes during updates ...
They can have coins, sprays, emotes, or even Gems. Gem-rewarding special quests are, as you might have guessed, rare too. There has only been a handful of them in Brawl Stars' long history.