The problem is that a lot of times they act like they are the trademarked brand in the ad to trick the user. This is unethical and should be illegal.
But from what I've seen, the vast majority of ads that incorporate a competitors trademark are not doing that, and making it very clear they are advertising an alternative to the trademark being referenced.