There are two kinds of purification in Islam: purity of the heart from shirk and ritual and physical purification. Water is the means to the latter kind.