Dimethyl ether $\left(\mathrm{CH}_{3} \mathrm{OCH}_{3}\right)$ and ethanol $\left(\mathrm{CH}_{3} \mathrm{CH}_{2} \mathrm{OH}\right)$ are isomers, but $\mathrm{CH}_{3} \mathrm{OCH}_{3}$ has a $\mathrm{p} K_{\mathrm{a}}$ of 40 and $\mathrm{CH}_{3} \mathrm{CH}_{2} \mathrm{OH}$ has a $\mathrm{p} K_{\mathrm{a}}$ of $16 .$ Why are these $\mathrm{p} K_{\mathrm{a}}$ values so different?