Google Analytics is not going around tracking users. They provide a service that the website you decided to go to (cnn.com, bbc.com) is using. If you have to be angry, be angry with cnn or bbc.
Also, client side scripts do not run on the website's property. They are taking advantage of the wide-open security model of web clients (the model they coincidentally get to define because they dump massive amounts of money into giving away a free browser, making competition in the space nearly impossible) to use people's computers for unauthorized purposes. It's a malware payload just like a crypto miner. They should be treated the same way (or more severely) that they would be if they published miners and told web developers to add them to get free money (taking their own cut of course). The operator and the tool creator should both be blamed for shady behavior when the tool is designed and advertised for shady purposes.
Manufacturers make things when there's a market. If Google didnt build Google Analytics, someone else would (Maybe Microsoft, or Apple) because the demand exists.
If GA didn't exist there's no guarantee that the alternatives would create the same negative externalities that damage privacy of strangers while delivering value to the users of the software.
Google Analytics ultimately operates the way it does not because it's necessarily the best way to provide value to the sites that use it, but because it serves Google's monopolistic and unscrupulous interests.
Why haven't they created crypto miners for even more profit? It would be more ethical and less wasteful than the surveillance/ads combo. Obviously others will and have done it.