This typically happens when a cake is made with too much flour or the cake batter is over-mixed. For best results, use the weighted flour measurement (grams are far more accurate than cups!) and mix the dry and wet ingredients gently until just combined.