that's not an app store feature, that's an iOS feature. i agree, it's fantastic, it doesnt require apps be distributed via the app store to work, however, its a part of iOS having well designed permissions controls
So why don't apps just work around it? Because they have to agree to terms with Apple and SAY that they won't. And then Apple has the power to kick them off the store if they do it anyway.
In addition to that, they have to list what data they collect and what they do with it when they get it. Basically they have to make a bunch of pinky-promises. Some of those pinky-promises Apple just shows to the user as a list of "here's how this company is going to use your data". Other things are just forbidden outright.
Whether a company can collect and sell certain kinds of my data to a third party is not something that can ever be controlled through an OS level feature.