Also true of literally every OS, on the inherited wisdom that separating the config from the actual application allows it to persist through upgrades and reinstalls easily.
There are certainly other ways to do that, but this is how it has been done since forever.
Windows uninstall isn't guaranteed* to be perfect but it's much better in this regard. It's common on Windows to have uninstaller apps that go around cleaning up the crumbs of the application. The equivalent on macOS isn't unheardof but it's rare.
>It's common on Windows to have uninstaller apps that go around cleaning up the crumbs of the application.
In my experience what is common will be the inverse of that. And leaving config files spread throughout the system is one thing. Sometimes the uninstaller doesn't even remove the Program Files directory leaving it behind with cache, tmp files, etc. (Things that shouldn't even be there in first place but anyway.)
Right but few kbs of config is less of a bother than few hundred megs of deps installed all over the place.
The config and data is iffy situation because you might want to uninstall just to install new version, and so might want them to stay, might want them gone.