Roasting the cauliflower, onions and garlic gives the soup a nutty, smoky flavor. It also brings out the sweetness of the onions and garlic, adding a delicious contrast to the spices in the dish.