It's not that hard to do, there's not much figuring out involved. It just doesn't make sense to serve ads to people who have actively taken steps to ensure that they don't see them.
As for YouTube - do you realize how much data they deal with? Their costs are ridiculous; they're hardly the example you should be trotting out to inspire incredulity about the viability of the online advertising model.