All these newfangled abstractions like Nix, Docker, virtualenvs etc. are simply because people find it more interesting (and easier to monetize) to build new frameworks instead of learning to use existing ones.
As an example, Environment Modules solves 98% of these problems and has been available for more than 30 years: