As Jataveda, Agni burns the fleshless sacrifice to the Gods.
As Kravyada he burns flesh, which is the cremation fire and the fire for the sacrifice to the spirits of the dead.