Well they're not. Maybe they should be but they're not.
In JavaScript, NPM is a package manager. Build systems (Vite, Webpack, Browserify, ...) are separate.
In C++, we have vcpkg and Conan. Both are package managers, neither are build systems. I haven't used vcpkg but at least Conan integrates with Meson, CMake and other build systems.
A good build system (i.e not Make) has a clean concept of what a "package" is and how the dependencies between "packages" work. But a build system does not need to know how to download packages, it just needs to know what to do about them once it's pointed at a package. The problem with Conan is that it has to support a bunch of different build systems, so the definition of what a "package" is gets muddied.
This is "the more you reject it the more you suffer" part
CMake and Meson both support package management. Conan also is a build system as much as a package manager. NPM is a build system, too. The degrees to which they try to pass off responsibility to other tools is why they suck.
> a clean concept of what a "package" is
First mistake: assuming you can define this. Good build systems/package managers don't define this at all, nor should they. It's natural for software developers to want to put limits here and try and box things in but it just makes life harder for everyone.
A build system orders individual operations that take inputs and yield outputs. That's it. This is what Make got right.
Package management is just an extension of that.
> a build system does not need to know how to download packages
Downloading is trivial. The actual package management part is checking hashes, version unification, and handling updates.
There's just no argument to me that these need to be separate tools, when bad tools wind up doing the same work poorly.