It's there to keep the 'nife' on its toes.

Seriously though, blame Old English. They had a 'cnif,' and sometimes, letters just stick around like that weird uncle nobody talks about. You could try writing it without the 'k', but then you'd be knifeless in a world of knives... and that's just sad.