It's produced by bacteria in the intestines, but not absorbed during the first pass through.
(This thread is making me feel queasy.)
Rabbits for example re-eat every piece of faeces because the digestion of grasses take so long it takes two passes to get the energy out...