This is usually because too much flour has been added to the cake. It could also be because the batter has been over-mixed.