This is one of the reasons why this type of mains plug should not be used in wet areas. It had arced between phase, neutral, and earth when wet, which carbonised the plastic of the plug.
The other reason is for electrical safety.
An extension cable can traverse wet areas but the plugs and sockets should not get wet, unless they are rated for wet areas.