The salt is to ensure most microbes won’t survive, hence keeping it safe to eat.