Why to add garlic for pickles?
Garlic in pickling recipes is just for flavor.  It does not effect the chemistry of the pickle--either for vinegar pickling, or fermentation pickling (other than adding more vegetable mass to be pickled).

(This part of my little quest to close old questions with no answers, and no other substantive answer has been offered in the week since the question was asked.)