There's not been nothing stopping anyone developing exactly this on MacOS or Windows for 30 years. In fact you could go and develop it right now. If both platforms can support third party stores like Steam, if it's so easy to do then this should be entirely doable.
I suspect the reason something like this hasn't been done is that it's actually a heck of a lot harder than you think.
TBH, I think it's less "hard", and more "network effects".
And given Microsoft's Monopoly nonsense in the 90's they probably did not have the stomach to wipe all the bespoke installer generator products off the map in one stroke.
Package managers have existed on Linux since... I don't know but I've never used a Linux distro without one.
The difficulty isn't technical, it's social, if you build a third party store you have something like Homebrew or Cocoa. It works, but it's never going to be used by the majority of users.
I suspect the reason something like this hasn't been done is that it's actually a heck of a lot harder than you think.