Ninjas avoided garlic or any pungent food to prevent their body odor from being detected by the enemy when hiding.