"App cannot be updated because it was refunded or purchased with a different Apple ID"
I recently bought a new Mac computer that has apps that need updating (Numbers, Keynotes, Garageband, iMovie and Pages). I keep getting this error when trying to update "_____ cannot be updated because it was refunded or purchased with a different Apple ID".
It's a brand new Mac so I am confused how there is a different ID to the computer. How can I update these apps with my ID?
MacBook Air 13″, macOS 10.15