The metallic body of electric appliances is connected to the earth by means of earth wire so that any leakage of electric current is transferred to the ground. This prevents any electric shock to the user. That is why earthing of the electrical appliances is necessary.