Steam on Windows has some odd behaviour too [1].
Warning:
The uninstallation process deletes the folder Steam was
installed to to ensure it is fully uninstalled. If you accidentally
installed Steam to a folder containing other data, for example
C:\Program Files\ instead of C:\Program Files\Steam\, STOP!
[1] https://support.steampowered.com/kb_article.php?ref=9609-OBM...I'd expect most software uninstallers to do the same thing. That's why we should use package managers instead of letting users choose where to put things (or fully encapsulated app objects rather than using installers at all).
Most software on Windows only erases files that it installed, and leaves the directory in place if there are any other files remaining. Sure it may be annoying to clean up if you mind orphan stuff, but it's way better than the alternative.
>the recent but on Steam Linux that erased your hard drive...
Link to said bug: https://github.com/ValveSoftware/steam-for-linux/issues/3671
Well for the recent but on Steam Linux that erased your hard drive if you moved the Steam library folder somewhere else, there was nothing they could do to "unwind their screw-ups", except fixing it in the code once the damage was done.