In allylic and benzylic halide, the carbocation formed undergoes stabilization through the resonance. Hence, allylic and benzylic halides show high reactivity towards the SN1 reaction. The resonating structures are

Resonance stabilization of allylic carbocation

Resonance stabilization of benzylic carbocation