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.
The second is Mac not iOS which had a much more relaxed security model.