There is also a bandwidth cost of delivering the application and sending the results.
But having said that, yes there is a cost, but there could also be a real gain for that cost. Replacing adverts with CPU cycles only changes the nature of paying indirectly for something. There should always be an easy way to opt out and users should know it's happening.