The specific smell of garlic is caused by the presence of volatile sulfur compounds that are produced when garlic tissues are damaged.