Even the linux kernel doesn't need millions of lines of code; most of the actual LOC is device drivers, and you don't need all of them, you just need the ones for the devices you have.
And Linux maintainers are actively pushing to radically cut down on the LOC by eliminating drivers etc.
And Linux maintainers are actively pushing to radically cut down on the LOC by eliminating drivers etc.