Here's why:
* Metaphor: A figure of speech that makes a comparison between two unlike things without using words like "like" or "as."
* In the sentence: The pine needles are being compared to a carpet.
Even though pine needles and carpets are very different, the sentence is implying that the pine needles are soft, covering the ground like a carpet would.