What does TV shows generate there revenue by?

By selling airtime to companies that wish to advetise their product on the channel. The BBC is funded by the T.V. license revenue.