Your Windows 10 product key serves as proof that you actually own Windows 10, and might need to be entered when you reinstall ...
Cloning a hard drive on a Mac is a different process. If you have a newer MacBook or iMac, you can't swap out the hard disk ...
It's a good idea to backup the files on your Windows 10 computer for safekeeping, in case you lose them for any reason.