This has been tried several times over the last 15 years (e.g. United Devices); in general the idle time on random PCs is worth less than the overhead of organizing it.
I've only invested about 5 minutes thinking about it, and previous failures are probably a strong indicator that the idea isn't profitable. I'm just questioning whether previous attempts were premature.
There is a market for un-utilised compute (bitcoin/torrent) and a market that requires compute (AWS/Azure/Etc). An intermediary to join these two markets seems like an opportunity (naively).
To really be practical it would require useful homomorphic encryption and fast internet speeds, though.