The silent /K/⟨K⟩ occurs before the letter n⟨N⟩ in most cases,
e.g. Knife , knotKnife , Kneeknot, knowknee, Knowledgeknow, Knight knowledge,etc knight etc. There are some exceptions which are too few to bother with.
The Kn⟨kn⟩ combination comes from the Germanic languages where the KK is still pronounced in some words.
Before the 17th century people in England also pronounced words like Kneeknee, and Knifeknife using the /k/ sound .However However, over time, and for whatever reason, the /k/ sound became silent, probably because it was too awkward to pronounce.
There are many advantages to having silent letters in English, and one is that different spellings can help us to differentiate between homophones which are words that are spelt differently, but have the same sound. e.g. nightnight and KnightKnight. The
The silent ee at the end of words also gives us a clue as to how to pronounce preceding vowels.
Finally, many English spellings are weird because of our history. Our alphabet has a limited number of letters and therefore couldn't accommodate the influx of new sounds and words brought in by invaders over the centuries.
⟨Angled brackets⟩ represent orthography (spelling) while /slashes/ represent sounds