Except the cookie banners are also optional, unless you're using third-party services to collect that data. Don't blame the cookie banner, blame the dozens or hundreds of "partners" that site is using to "process" your data, blame the site owner for building such a travesty of a page that they have so many "partners" in the mix harvesting extraneous info unnecessary for basic functionality instead of building a better, cleaner, leaner, targeted service.
So is an app needing the age of the user. That doesn't mean there are not a bunch of people who will collect the information. It's like saying washing your hands before cooking food is optional and that people should blame restaurants for serving food. It's not a serious suggestion. Restaurants will continue with the business model of exchanging food for money and websites will continue with the business model of showing ads. These kinds of businesses will exist forever.