When something dies hero or unit, the food decreases, because they're no longer in use, which is why it always costs food in the melee game of WC3 to revive a hero, because when they died their food cost was reduced, unless there's a special instance in this case where it's reduced but the hero is still alive or some very weird context, it's not a bug