What is the X in X-mas?
c.1200, "spiritual credit" (for good works, etc.); c.1300, "spiritual reward," from Old French merite "wages, pay, reward; thanks; merit, moral worth, that which assures divine pity," and directly from Latin meritum "a merit, service, kindness, benefit, favor; worth, value, importance," neuter of meritus, past participle of merere, meriri "to earn, deserve, acquire, gain," from PIE root *(s)mer- "to allot, assign" (cf. Greek meros "part, lot," moira "share, fate," moros "fate, destiny, doom," Hittite mark "to divide" a sacrifice).
Sense of "worthiness, excellence" is from early 14c.; from late 14c. as "condition or conduct that deserves either reward or punishment;" also "a reward, benefit." Related: Merits. Merit system attested from 1880. Merit-monger was in common use 16c.-17c. in a sense roughly of "do-gooder."