But it forces them to spend resources on it, lowering their margin, which in turn prevents them from saving up a war chest of cash that allows them to stop innovating and just buy up newcomers (eg Facebook buying Whatsapp, Instagram, etc)
I doubt google is spending $billions on a script that filters bots.