The reason why earth wire is used is:
To direct any leaking charges into the earth
To provide safety to devices and their users
When there is a leakage of charges, the earth wire directs them to the earth to neutralize the net charge of the body. This is a safety measure, so that even when leaked charges are present in the appliance, a user touching the appliance won’t experience any charge flowing through him, as the charges will flow through the earth wire because it offers less resistance.