They add a combination of texture to replace flour, as well as protein. Chickpeas are mild enough in flavor that they do not overwhelm the chocolate you are looking for in this recipe.