I am trying to figure out the product of this reaction. I initially thought that a carbocation would be formed at where the chlorine leaves
from:
But according to the answer stated by the textbook, it should be this:
But why does this rearrangement have to occur? Isn't the carbocation quite stable already? Any help would be appreciated.