During cabbage sauerkraut fermentation, salt draws out sugars that feed microbes to produce an acidic environment inhospitable to harmful bacteria