Now six of these characters are unlocked just by playing through the game since they are critical to the main narrative, but the rest of them can only be acquired by engaging with Genshin Impact’s Gacha system, or ‘Wishes’ as they are more commonly known.

Source: N4G PC How To Unlock Free Characters In Genshin Impact