> My strong belief is they want apps because they can spam you with notifications to get your attention.
That's it, an app installed on a mobile device is a much more effective attentional hook than a website that must be either bookmarked or remembered. It is like inviting a door-to-door salesman to your house, of course they will take the invitation.
Also, analytics are not limited by JavaScript and browser APIs. Getting your attention isn't so valuable without knowing how to do it a second time.