Why it necessary to connect an earth wire to electric appliances having metallic bodies?

An electric appliance having metallic body can have current leak and current may flow through its body. It can be fatal if a person touches its current carrying metallic body. So, it must be connected to an earth wire to pass the extra current, flowing through its body, to the earth plate.