That's a critical difference between MacOS and iOS. The former has a gatekeeper that prevents you from running software from unapproved sources; it can be turned off. The iOS gatekeeper can only be disabled by subterfuge (including paying Apple for a developer account).