The idea, I assume, is to burn as much fuel inside the engine rather than allowing it to feed an engine bay fire, once the engine runs down,
Nothing as complex as that, I'm sure. Fuel valves are part of the airframe fuel system and inevitably are a long way upstream of the HP Engine fuel pumps. Their primary purpose is not emergency engine shutdown.