Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
A Windows Update normally wouldn't remove any programs from your computer. However, resetting the computer to factory defaults or resetting the Windows installation is likely to remove anything that wasn't preinstalled.
You should be able to reinstall Office from your associated account at https://account.microsoft.com/services.