It does cost them money when they get it wrong. It's not as if google makes money off the demonetized video, they only make money if the creator does. People act like YouTube wants to demonetize videos, of course they don't, they would monetize every single second of YouTube if the advertisers allowed them to do so.