The Beauty of Purification

They say cleanliness is next to godliness. 

I have always wondered the meaning behind this, the act of cleaning oneslf only yo be dirty angain and to repeat the same process again and again. Is this ritual truly rooted in our nature as clean beings or has it been conditioned by our culture and surroundings?