Why don't ad networks put real ads instead of viruses?

I’m wondering why there are viruses in every ad in some websites that are using some different ad networks, why don’t they just put real links instead of "you won an iphone 12" ads with viruses included.
Does anyone know why?