The first didn't cause any user issues as I'm reading it except extra data usage. I don't think it even did it in the background but only when the app was running. So I wouldn't even call it malware. Unlike this Android app which showed ads to users outside the app.
The second is Mac not iOS which had a much more relaxed security model.
Another from 2018: https://www.zdnet.com/article/top-mac-anti-adware-software-i...