Earthing is done to save an electrical circuit or an appliance from damage. If due to some reason such as short circuiting, an excessive current flows through the line wires, it will pass to the earth if there is local earthing, otherwise it may cause a fire due to overheating of line wires.