Often baking at a very high temperature or overbaking can make cake layers to be dark around the edges. - Every cake recipe is different and some cakes have more sugar which can cause the cake to naturally caramelize. - Caramelization is not necessarily a bad thing because it has a lot of flavors. - I leave it on the cake when frosting but you can trim the edges before decorating.