ます - Wiktionary
The -ます ending is generally believed to have come from the Old Japanese auxiliary verb まゐらする (mawirasuru, “to humbly do something for a superior”), with idiomatic use arising from the causative conjugation of 参る (mairu, “to come or go ...