The updaters on Apple's download site are not full installers, so attempting to install macOS 10.15.7 update on Mojave would expect some earlier version of Catalina already installed older than that last version, and as you witnessed, fail.
In order to upgrade from Mojave to Big Sur, you would need to have a Late-2014 model 27-in iMac or newer, and to Monterey, a Late-2015 model or newer. If your iMac is a Late-2013 model, it can only upgrade to Catalina.
Remove the downloaded updater(s).
Using exclusively the Safari browser, see How to get old versions of macOS - Apple Support to obtain the pertinent full installer download from the Mac App Store. It will install in your /Applications folder and automatically launch offering you the opportunity to perform the Upgrade or quit the installer. Never perform an upgrade without a last Time Machine backup of the current operating system and then set that drive aside, not to be used as a Time Machine drive by the new operating system. It is your get out of jail free card.
Any version of macOS after Mojave will not support 32-bit applications, so I suggest that before the upgrade, you run the free Go64 application that will list the 32-bit application dependencies. For those third-party applications, printer,s and scanner drivers, you will need 64-bit replacements from those vendors, provided 64-bit versions exist and are compatible with your upgrade choice.