Linux can boot quite quickly with the right settings, I've written about it at [0], but distros (reasonably) build very generic kernels and initramfs, which are not particularly fast to boot
[0]: https://blog.davidv.dev/posts/minimizing-linux-boot-times/