You ask for an entitlement, you prove need, you get it. In some cases you get entitlements at development time and the evaluation of requested entitlements is done as part of the app review process. In others, you have to apply to have your app receive the entitlements.
This is how it works with network entitlements, carplay entitlements (to show up on a car touch screen), apple pay entitlements (to add a credit card/transit card/student card from within an app), background app entitlements (continuous background location tracking), default app (to be the default email app or web browser), etc.