All apps on the App Store have to go through rigorous review and are restricted to Apples discretion in being granted access to OS features while Apple themselves use undocumented features to compete as a platform.
Try hooking up AirPods to your iPhone and do nothing else. The Lock Screen changes to have an Apple Music player with a random song you may have never listened to.
This, even if you were listening to another song on YouTube Music or any other music app as your last played audio.
On more than one occasion, I’ve accidentally played some idiotic pop song that Apple Music pushes into this experience while commuting with AirPods and noise cancellation on while holding the phone firmly grasped in my hand.
It’s ridiculous how many of these little UX tricks they adopt that boost the metrics of their internal products while openly denying the competition access to the same.