A few possible culprits: under-baking, too much liquid in the batter, or an overly enthusiastic grating of carrots. Next time, double-check your recipe, measure ingredients precisely, and squeeze excess moisture from those carrots to avoid sogginess.