There are privacy-respecting ways, e.g. https://blog.google/products/google-pay/google-wallet-age-id... uses Zero Knowledge Proofs to just verify age without revealing any other personal data. If Online Safety was just a data collection Trojan horse than this kind of approach wouldn’t be allowed.