Specifically, it's an abbreviation of the French messieurs, which is just multiple misters. Maybe it's more formal now, but it was ordinary and frequently used in the past in both French and English writing. (Obviously, still quite commonly used in, um, French today.)
English words of French origin are normally considered formal. Back when the French invaded England the rich spoke French, while the poor spoke Anglo Saxon. The words mutated and changed but words of French origin are now formal because of this.
As a French, it feels weird to learn something about my language on an English site :|. I don't remember seeing it written in French. Or I saw it, understood the meaning and forgot.