Salt is critical in fermenting pickles because it helps to create an environment where harmful bacteria cannot survive, but beneficial lactobacillus bacteria can, which are necessary for the fermentation process.