The first is a language and the second is not.
You write code for the kernel in the second case. It's usually done with C but a smattering of assembly language can be found.
In case you are confused about
what the 'kernel' is, that's the core of the operating system that handles all system functions and communications between processes.