Apple brought the sideloading back, it seems to have been removed by mistake.
You can use a third party app like iMazing to backup the .ipa file from your iPhone/iPad, and install them on your Mac. It works for apps not whitelisted for Mac in the App Store.