If you did not originally purchase these apps using your AppleID, then you don't "own" them, nor can you update them. Delete the apps and see if you can download them from the App Store using your own AppleID. I believe at some point these apps became free, but they still must be associated with your AppleID.
If you purchased this Mac used, then you really should back up your data and perform a clean install of macOS by first erasing the drive before reinstalling macOS.
https://support.apple.com/en-us/HT208496
Here is what the previous owner should have done:
https://support.apple.com/en-us/HT201065