When rain falls, it runs into the ground where it absorbs minerals from the rocks in that geographical area, normally limestone. These minerals come out of the water and cling to surrounding surfaces, pipes, showers, boilers etc. This process is accelerated when the water is heated. An example of this is the element in your kettle. Photo shows the effects of limescale on the outlet of a hot water tank.