It's not. Advertising is the result of imperfect, asymmetric markets. The person you replied to conflating dark patterns from bad actors to equal all of advertising.
If buyers had perfect knowledge of products/services, then they would instantly know what they were going to purchase. Seeing as they don't, there is demand for distributing market information for products/services to buyers. When there are substitute products/services, the demand is increased further.