The sourness in a gose beer comes from the presence of lactic acid, which is produced by lactic acid bacteria like Lactobacillus during fermentation. To achieve the desired level of sourness, you can control the amount of lactic acid present by adjusting the fermentation temperature and time.