The Ravenous Whiskerpillar never actually dies, it just plays dead so that they’ll be left alone.
This doesn’t work, and the Pikmin still drag it to the Onion alive, squirming and panicking the whole time.
This also means to cook it Louie either had to kill it himself or he cooked it alive.