How to reset macOS v10.15 (Catalina) with apps that come from the store before I sell it
They belong to the owner of the Apple ID, so will be available to re-download once that ID is signed in. If you are wiping this to sell, then the new owner will be responsible for setting it up. 

You shouldn't try to do it for them, or all the apps will again belong to your ID, not theirs.

See Apple KB - What to do before you sell, give away or trade in your Mac