From Latin mānsiōnem, with metathesis of "i"; perhaps through French maison, or influenced by it. Doublet of mansión.
Practice speaking and memorizing "mesón" and many other words and sentences in Spanish.