Updated versions of those apps require a newer version of macOS. So that is not an option unless you want to buy a newer Mac. You can continue using the current versions of those apps. However, if you ever need to erase & reinstall macOS, then the MS apps may no longer be supported if MS has deactivated their licensing & activation servers. Your Apple apps (Numbers & Pages) also may not be available unless you previously "purchased" them through the Apple App Store while since these apps don't appear to be supplied through a clean install of macOS even though they were installed from the factory.
Apple and many third party developers will only support the three most recent versions of macOS which at this time are Golden Gate, Tahoe, and Sequoia (macOS 27, 26, & 15 respectively). As @Niel has mentioned, your laptop cannot run anything later than macOS 12.x Monterey.