Acid-base reactions are faster than nucleophilic addition reaction. So, in the first step acid-base reaction takes place between alcoholic functional group and Grignard reagent. Now, the second mole of Grignard reagent to react with aldehyde functional group. Hence, at the end of the reaction a diol is produced on acidification.

