What was the purpose of adding whey? The same, I suspect, as adding salt and sometimes a little vinegar at the beginning of lactic-acid fermentation: These ingredients help keep bad microbes, like mold, from growing while fermentation gets under way, and they also slow the fermentation, thus allowing full flavors to develop. The whey took the place of additional salt.
15