When water moves through soil and rocks, minerals like calcium and magnesium get dissolved in it. This leads to the formation of hard water. Though this mineral buildup doesn't create serious health risks, when calcium, magnesium, chalk, lime and other such compounds get dissolved into the water, these can interfere greatly in household cleaning activities.