The words airless, heirless sound the same but have different meanings and spellings. Why do airless, heirless sound the same even though they are completely different words?
The answer is simple: airless, heirless are homophones of the English language.
Having no air.
Lacking fresh air; stuffy.
Lacking movement of air; still.
Without an heir.
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.