This is known as the mineral "lime", which naturally occurs in water pumped out of lime containing aquifers — which is how the aquifers got there in the first place. In other words, when you pump your water out of wells, you get hard water containing dissolved lime.