Likely from Proto-Indo-European *me. Compare Ancient Greek μετά (metá). Possibly related to सुमत् (sumat).
स्मत् • (smát)