The words racks, wracks, rax sound the same but have different meanings and spellings. Why do racks, wracks, rax sound the same even though they are completely different words?
The answer is simple: racks, wracks, rax are homophones of the English language.
Plural form of rack.
To stretch; stretch out.
To reach out; reach or attain to.
To extend the hand to; hand or pass something.
To perform the act of reaching or stretching; stretch one's self; reach for or try to obtain something
Plural form of wrack.
Definitions 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.