You are right about what Youtube is, but what I meant by Youtube instead of Patreon is this: With Patreon, you have to work for building an audience, but Youtube pays you based on your views. A Github that pays people based on the usage of their code might not be the easiest problem to solve, but what I'm suggesting in the end is the same thing with you. Only time might show what such incentives may turn the platform into, but considering the general audience of the site, I doubt it'd turn out like Youtube.
Getting the money from the intermediary to the developer is only half the problem. First you have to get the money into the intermediary.
On youtube this is done with advertising. I can't imagine people being happy with that embedded in open source software. People got upset enough about Ubuntu and the Firefox/Pocket deal.
> A Github that pays people based on the usage of their code might not be the easiest problem to solve
A github that charges people to use code is even harder; that sounds like instant suicide.
I was happily paying 7 USD/month up until last week for the private repos, and they apparently had 300M USD/year revenue when Microsoft bought them a few months ago. I am not aware of their costs, but since they are part of Microsoft now and trying to foster adoption, integrating money into the system should be considerable.