According to the Open Hub website, Linux has 37,016,567 lines of code, but this is small compared to NetBSD and OpenBSD, which have 72,065,568 and 81,902,070 lines of code, respectively.
Is there a reason why Linux has fewer lines of code compared to NetBSD and OpenBSD? I’d like to know.


This is why I typically refer to it as GNU+Linux and not just Linux. Two different and incompatible operating systems can use the same kernel just look at Android and GNU+Linux. Each of the BSDs is a complete operating system (userland + kernel).