Why do Snakes have Scales?

The purpose of scales on snakes is to allow moisture to enter. Scales also decay over time on a snake and then a new scale is formed like humans with skin.