You don’t have botnets on iOS, but you do have the problem on OSX (can find many instances by googling it). The reason OSX have this problem is because they allow third-party app stores/installations. If Apple was forced to open up iOS then iPhones would also end up having all the same malware problems you see on Windows, OSX and Android.