They don't fund everything. They don't fund anything in particular.
They provide the funding and the medical professionals decide how best to allocate that funding for the best results.
It's a bit different in Canada to my situation in Scotland since there is also the choice of private healthcare here if you want to pay more to skip queues etc.