The pronunciation "kuh-ny-cht" was a common pronunciation in the past, reflecting an earlier spelling of the word. It was often spelled "knyght" or "knight" in Middle English.
The modern pronunciation "nayt" is a result of the Great Vowel Shift, a major sound change in English that took place over several centuries.