J.R. S. answered 12/10/20
Ph.D. University Professor with 10+ years Tutoring Experience
The salt of a weak acid will be more soluble in acid than in water.
So, NaCl, MgCl2 and NaNO3 are all salts of a strong acid (HCl).
CaCO3 is the salt of a weak acid, H2CO3, so it will be more soluble in H+ than in water.
Why?
Because is you look at the reaction, you have CaCO3 + H+ ==> HCO3 ==> H2CO3 and since this is weak, according to LeChatelier, the reaction will go to the right thus increasing solubility.