When it first appeared in English, mess meant a portion of food. This came from the Old French mes, “a dish”, which in modern French is spelt mets. This comes ultimately from the Latin missus, strictly “to put, send” but which could also mean “a course at a meal” (that is, something put on the table). . Taken from worldwidewords.com