This is almost always because the cake batter has been over-mixed. Over-mixing any cake batter which contains flour will activate the gluten and therefore, cause a dense texture.