It shares a common codebase with desktop / web, which is written in typescript. To run typescript, a nodejs installation needs to be shipped with the CLI. Furthermore, the requried javascript/typescript libraries take up the majority of space, since they get stored as source-code.
Here are the top 10 libraries by space in the CLI:
If you have a filesystem that supports compression (btrfs f.e) the actual size on disk is much smaller since source code is highly compressible.
Actual size on disk for me is 18 MB:
Processed 11497 files, 1770 regular extents (1770 refs), 9871 inline.
Type Perc Disk Usage Uncompressed Referenced
TOTAL 34% 18M 53M 53M
none 100% 89K 89K 89K
zstd 34% 18M 53M 53M
Interestingly, some libraries include duplicates. F.e rxjs is listed in my listing above once, but appears again as a dependency of inquirer. This is just how npm is designed.. There is a reason for memes like this I guess: