Advertisement is not a cause of the problem. It's just an effect of a deeper one. The cause and effect chain goes like this: money-based world -> profit-oriented economy -> advertising.
Windows is a sold product with no free tier. isn't that the profit? it was part of the price I paid for the notebook. and they still make me see ads? that's a business model publishing would die for.
There are ways of making money ethically, and failing that, legislation is there to keep things in check. This is why (in most of the developed world, at least) you don't see people in the street fighting & robbing each other all the time.
I agree it's not 100% perfect, and things do slip through the cracks; including in cases of big tech companies that move too fast compared to legislation and so can get away with what is essentially large-scale fraud, tax evasion, privacy violations, etc.
But the idea is if the market itself cannot solve the problem and it's causing significant harm to society then legislation is supposed to step in to prevent the behaviour deemed harmful.