The costs were paid off so long ago, the cable companies could easily compete if they got rid of most of the ads.
The ads are placed by the content providers to pay for the production.
There are several content providers that require payment up front and they do not have ads.