The words dies, dyes sound the same but have different meanings and spellings. Why do dies, dyes sound the same even though they are completely different words?
The answer is simple: dies, dyes are homophones of the English language.
To cease living; become dead; expire.
To cease existing, especially by degrees; fade: The sunlight died in the west.
To experience an agony or suffering suggestive of that of death: nearly died of embarrassment.
Informal To desire something greatly: I am dying for a box of chocolates. She was dying to see the exhibit.
Plural form of due.
Definitions from The American Heritage® Dictionary of the English Language, 4th Edition, from Wiktionary, Creative Commons Attribution/Share-Alike License and Wordnik.
Homophones (literally "same sound") are usually defined as words that share the same pronunciation, regardless of how they are spelled.