The mobile app is a program that works for the developer.
The end result of browsers becoming more adtech-hostile and user-friendly is that more companies turn to mobile apps.
What is "several years"? This has definitely existed, say, five years ago. Not at this scale, of course, but it's not a recent invention by a long shot.
The latest Firefox release has a built in list of tracker domains to block and next release blocks auto playing video.
From a user perspective, now is probably the best time ever to be using the web.
Apple decides to start notifying on cookies or make fingerprinting harder? Poof. There goes a chunk of your ad value per user.
And who knows what any given browser vendor will do tomorrow?
Some would say "So it's like the 90s, where everyone was continually adapting as web specs were negotiated." The difference is that now there are billion+ dollar businesses directly tied to that ad revenue.
That doesn't mean the app can't exfiltrate data (presumably data useful to advertisers) in the background.