You make it sound as if YouTube is hosting videos out of their good will. They are doing to make money for themselves, which they do, whether or not (for often very arbitrary reasons) decide to demonetize a video and stop the creators from getting any of it.
If a video is demonetized it’s because YouTube doesn’t think advertisers want to advertise on it. They aren’t making money directly off the video either.