The moisture in a carrot cake typically comes from the carrots themselves, as well as from the oil used in the recipe. Additionally, certain ingredients like crushed pineapple, applesauce, or buttermilk can also contribute to a moist cake.