Stability of carbocations
More the number of resonance structures (alias mesomers) more is the stability of the carbocation so benzylic carbocation with 4 mesomers is more stable than 2 structures of the allylic carbocation.