Just like Tor, encryption, VPNs, etc, there are tons of legal uses for these proxies as well.
People who run Tor exit nodes generally do so by choice, and know the risks implications involved.
They didn't just connect a coffee pot to their WiFi one day.
Not all of these networks are built via malware.