That’s probably how it’s designed (at least as far as the frunk is concerned).
If the car locks after unlocking the frunk but before physically lifting the hood, then the car relocks the frunk. This can happen if the car thinks I’m leaving and it locks the car when I get up from the driver’s...