It's likely because the dev intends to have this game be put on Steam at some point and doesn't want their game to be easily cheesed without knowledge in decompiling files.
If you want my advice to get the endings you want without going into the game files, I suggest referring to this spreadsheet by Crystalbinja to whitelist the food that contributes to the ending you're going after and don't eat the foods that don't contribute unless no other options exists at the moment. It doesn't get rid of the RNG factor, but considering I don't know how to decrypt Godot files without having to also buy a PCK Bruteforcer; unless the dev adds a secret debug menu in a future update, my advice is as good as it's gonna get.