Wait, did they even speak Mandarin back in the Song dynasty?
I thought Mandarin only got popular and became pseudo official dialect after the founding of Yuan dynasty. The mandarin was mostly a Northern dialect, hence the connection with the Mongols.