Although in both cases products are CH3I and C6H5OH; the two reactions follow different mechanism. C6H5−O−CH3SN2HI(g)CH3I+C6H5OH C6H5−O−CH3SN1HI(conc)CH3I+C6H5OH
Remember that during SN1 reaction, CH3+is formed because it is more stable than C6H5+.