(a) avoid shock
Electrical appliances are earthed to avoid shock. The earth wire provides a low resistance to the current, hence, any leakage of current to any metallic body keep its potential equal to that of the earth, i.e. zero potential and the user will not get a severe electric shock.