Because an amount of the said substance emits a specific amount of heat.
In food usually calories are measured per 100 grams.
For biomolecules calories are measured per 1g (e.g. 1g glucose=4.1kcal)
8.3m questions
10.9m answers