Sure that’s a package manager, but it’s a distro specific one. Now make one that works on all Linux distributions. And now make one that works on all operating systems.
This is the problem that npm, pip, and whatnot solve. They work the same, (almost) everywhere.
C/C++ don’t have a proper answer for it.