If you overactivated the gluten in the flour by mixing too much, you can have a dense cake as a result. The same would happen for any baked goods.