There are no rules in DnD for growing wheat or milking cows. Therefore, according to your logic, NPCs don't eat anything.
IMO the rulebooks contain a rather minimalist set of player-oriented rules for adventuring. There's no reason to assume that a demon can't blip in and perform a ritual...