Today, iOS has a strong sandbox where apps can’t access data of other apps unless explicit permission is granted (eg. access your location/contacts/photos), and apps can’t access or modify system files at all.
Also consider that sideloaded apps does not mean allowing unvetted apps - Apple could still mandate macOS-style app notarization to prevent malware:
> Notarization is a malware scanning service provided by Apple. Developers who want to distribute apps for macOS outside the App Store submit their apps for scanning as part of the distribution process. Apple scans this software for known malware and, if none is found, issues a Notarization ticket. Typically, developers staple this ticket to their app so Gatekeeper can verify and launch the app, even offline.
> Apple can also issue a revocation ticket for apps known to be malicious—even if they’ve been previously notarized. macOS regularly checks for new revocation tickets so that Gatekeeper has the latest information and can block launch of such files. This process can very quickly block malicious apps because updates happen in the background much more frequently than even the background updates that push new XProtect signatures. In addition, this protection can be applied to both apps that have been previously and those that haven’t.
https://support.apple.com/guide/security/protecting-against-...