The BBC likes to say that all of its shows are funded by the TV license fee, but Doctor Who makes enough money for BBC Worldwide in DVD sales and overseas broadcast rights to cover its own budget and then some.
Even if only 100 people watched the original broadcast, they would still make Doctor Who, as long as the money is still flowing in.