It's exactly the same model as television channels have. The BBC is ad-free only because we have the TV licence.
People these days want everything for free. They forget that hosting websites and developing online resources costs money. If people aren't willing to pay for that, you will get adverts.