Toasting spices in a dry pan cooks the oils, producing a nutty flavor. When the spices are ground with a mortar and pestle, their taste is much more intense.