Where does “masu” come from?

Words derived from “masu