Windows and MacOS will both perfectly happy do a fresh reinstall
or install a new version, without needing to take special steps to protect your personal files.
If you are using OneDrive or its Apple equivalent. Not all people have that, want that or allow that.