The data that Google and Meta harvest are your interactions on other websites and apps that are loading a Google or Meta JavaScript, or have a back-end data integration with them.
I don’t know if Apple has client-side ad scripts like those, but in decades of building websites I’ve never been asked to implement one.