There is no liability component to a car's engine compartment.
For a hundred years car engine compartments have been dangerous as hell.
Hazards in an ICE compartment:
* temperatures hot enough to melt/set fire to your clothing (the exhaust, which in modern engines can be found in all sorts of weird places; Audi and others now use turbochargers inside the engine banks, instead of outside them. Exhaust gas recirc systems can be in weird places, too
* moving components which could easily dismember digits, deglove your hands, descalp you. Lots of cars have stuff that isn't moving, which can unexpectedly start moving (like electric cooling fans.)
* scalding hot fluids which could geyser if released (ie the coolant expansion tank)
* battery acid, used engine oil, etc
Hazards in an electric car engine compartment: none, if you don't cut through the insulation of the bright orange HV cables or drink the fluids.