Creators have the final decision on the ads shown. I have a YouTube channel, and I always disable monetization on all my videos, so no ads are ever shown on my channel.
If you see an ad, it's because the creator decided to include one. YouTube is simply the platform that enables this choice.