Typically nowadays any OS when you buy and app from say a store that app is tied to an account. If you get a new PC you still own the purchased apps and can download them. Now Windows desktop apps you need the install media or install file. Even chromebook apps are tied to an account. There will be more and more Windows desktop apps converted to Modern apps and be available in the store.