-
desert:
deserving; that which makes one deserving of reward or punishment; merit or demerit; good conferred, or evil inflicted, which merits an equivalent return: as, to reward or punish men according to their deserts.
I didn’t know about this meaning of the word, and I thought the phrase was “just desserts” and was metaphorical.