Apple has a setting in macOS that disables installing apps outside of the App Store. This would be a completely reasonable setting for iOS for less tech savvy people.
People have been saying this for more than a decade, but it still hasn’t happened; there are still zero restrictions about what you can and can’t install on macOS.