That is like saying prosecuting murder is immoral because it is taking away the murderer and victims rights.
For a society to function there needs to be balance. ‘You can do whatever you want as long as enough people pay you to cover your bills’ gets bleak fast.
Many people benefit from Apple's closed system. Especially when you look at the malware and viruses that don't exist, because it's so protected.
It's a net benefit for society, even if you don't personally like it.