Grignards don't couple with alkyl halides. I know that thionyl chloride reacts with alcohols and other $\ce{-OH}$ group containing molecules to replace the $\ce{-OH}$ with a $\ce{-Cl}$. So we probably aren't making an alkyl halide from the alcohol with the thionyl chloride.
The book says that the starting product, which is an alcohol, attacks the sulfur in the $\ce{S=O}$ bond of $\ce{SOCl2}$. I got that the starting product should be an alcohol, but I did not expect the alcohol to attack the thionyl chloride.
Nevertheless, this generates an $\ce{R-O-SOCl}$ molecule, and the resonance-stabilized $\ce{O-SOCl-}$ ion is a good leaving group. This is the substrate that the Grignard can perform an SN2 type reaction on.
My question is: how common is it that alcohols attack thionyl chloride in this pattern? I'm guessing "not very common" because this would make thionyl chloride an undesirable reagent for making alkyl halides from alcohols. Is this reaction synthetically useful?