What word came first. Then why was the other word chosen to sound alike but entirely different meaning?
Your question is more about etymology than grammar, so this is not the best forum to ask on. Here are two links to an etymology website that you may find helpful: DESERT: https://www.etymonline.com/word/desert DESSERT: https://www.etymonline.com/word/dessert PaulM