Bonnets cover the engine, evs don't have engines, and their motors and other important components aren't always centrally located nor do they need much regular maintenance so the front is sometimes made into a storage compartment, the frunk.
I hate that term, trunk doesn't inherently mean on the back. It's just a container for storage. Going by that naming convention a traditional car trunk should be called a bunk (back + trunk)