How could they legally prosecute them? What laws were broken?
Not generally. Specific ones may be, but so far it's always been on a case-by-case basis.
For other content, it can be seen as a loss of income for the streamer if they are demonetized due to viewbots, and for those where it isn't - it is effectively ad fraud since Twitch revenue is based on those engagement numbers