Cannabis smells skunky due to terpenes, specifically myrcene and pinene. These compounds create the distinct aroma, influenced by the strain's genetics and growing conditions. The smell is often compared to a skunk due to similar compounds found in both.