Why do minerals and HCl not react?

Carbonate minerals do react with HCl. Calcite and dolomite for instance.