But it's still a lot better than apps, which give the developer more control without (in most cases) any tangible UX benefit. Just as an example, Reddit doesn't need to have an app, all they do is display text and images, along with some interaction, and they especially don't need to lock some content behind the app (I recently got a popup when trying to view a post saying that "unreviewed content" is only available in the app, despite the post clearly loading for a split second before the popup).
On top of that, platforms like Reddit and Facebook tend to prefer native apps because it's easier to keep you within the app. Even if you click a link to an external website, for example, Facebook will open that link in an in-app browser (unless you find the opt-out). A few years ago, a researcher found out that these apps often inject their own javascript into that in-app browser. In theory, that means FB can track you even on external sites, even if you do not accept cookies for that website. You just brought your own tracker. Facebook then decided they should ship their own entire browser engine, giving them even more control.
https://webventures.rejh.nl/blog/2022/in-app-browsers-are-tr...
When you go to a website, they have always known the originating IP address.
Also, browsers tend to bring their own sandbox (on top of what the OS already does). For example, Chromium was able to mitigate Meltdown/Spectre before OS vendors shipped an update (except on iOS where browsers can't bring their own engines, so iPhone users had to wait for Apple to ship an OS update...)