Guideline is very clear:
5.2.3 Audio/Video Downloading: Apps should not facilitate illegal file sharing or include the ability to save, convert, or download media from third-party sources (e.g. Apple Music, YouTube, SoundCloud, Vimeo, etc.) without explicit authorization from those sources. Streaming of audio/video content may also violate Terms of Use, so be sure to check before your app accesses those services. Authorization must be provided upon request.
For you to solve, you have to get the explicit authorisation from the platforms.
Some apps also offer similar features. So, how were these apps published?
Do you know if they got such authorisation ?
In any case, the fact that other app with similar feature has passed the review, in compliance with guidelines or not, is never an argument. And those apps, if not in compliance, may be rejected at a future review.