Grignard reagents serve as a base for non-protic substrates (this scheme does not show workup conditions, which typically includes water).  Grignard reagents are basic and react with alcohols, phenols, etc. to give alkoxides (ROMgBr). The phenoxide derivative is susceptible to formylation by paraformaldehyde to give salicylaldehyde.