Print ads were always backed by market research and data brokerage (buying lists of magazine subscribers, club memberships etc).
As for storing data that is generated by their platform that is these companies' prerogative, it's their data as much as it is yours.