Default Differences in kernels

Well I'm wondering what are differences between tw kernels and aosp kernels because I thought the kernels Works the same no matter the ui.. What matters its the OS huh? I know there's some framework related stuff in tw but still why does this affect the kernel?

Sent from my GT-N7000 using xda premium