Because he didn't want to see such a smart and caring sea shrimp end up like this, he started cooking randomly, trying to give the protagonist a harmonious and beautiful ending.
(Ps: I have never read the original work or other IPs of Nanpai Sanshu, I have only watched this TV series)