The kernel is the communication bridge between software and hardware. Kernel is the most important part of any operating system (OS).  All OS have a kernel, even Windows and iOS but since Android is based on Linux the kernel must be a General Public License (GPL) is a free.

So manufacturer must be public the source code of the kernel and third-party devs can compile and modify it.