Spices are usually toasted whole before they are ground. Applying heat to the spices melts the oils in them thereby intensifying their flavours.