People put nuts in desserts to add a crunchy texture, enhance the flavor with their natural oils, and provide nutritional benefits, such as protein, healthy fats, and fiber. Nuts can also contribute to the visual appeal of a dessert and offer a pleasing contrast to the sweetness of cetain dishes.