During digestion, hay is fermented by bacteria in the large intestine of the horse. Fermentation is not 100% efficient and these bacteria emit heat during fermentation. The digestion of grain occurs earlier in the digestive tract and does not involve fermentation and therefore does not generate much heat.