The exact reason is not known. It may be they eat mineral rich clay to counteract the toxins in their food ( mainly fruit, seeds and nuts ) or, as it tends to happen in regions with soils that are very low in trace elements, they may be visiting pockets of 'richer' soil to gain those trace elements in quantities large enough for their continued health. One thing is certain, the diet of the species gathering at these sites is not primarily leaves. Fruit, seeds, nuts etc. are nutritionally more advantageous in that it requires a lesser amount to provide the calorific values needed for birds. For birds, even as large as Macaws, to exist on leaves they would have to eat huge quantities, meaning a larger stomach, ( which would compromise their flying ability ), as leaf eaters need to allow a longer time for the gut flora and fauna to break down the cellular structure of the leaves. Simple physiology. Yet again you take an impression, or part of a fact, and twist it to fit your pre-conceived ideas. You'll just keep getting shot down every time.
Chris