YouTube automatically enforces copyright on behalf of the recording industry. Why shouldn’t Apple do it on behalf of their app developers?
Just because another app works similar to another app does not mean it's infringing.
Apple is not in the same position: the businesses who would sue them to try to force them to enforce their copyright are much much smaller than it (and are additionally very reliant on Apple).