Question

Why did this reaction occur as allylic halogenation? I think I'm confusing allylic halogenation and radical hydrogalogenation

enter image description here