Revenu generation is a bonus point: in my country taxes that incentive smokers to quit are directed to healthcare and most of the speeding tickets revenue goes to road maintenance and safety.
I’d prefer a public handling but the trend is privatization with everything : from health to education to water treatment. Even military assets! IMHO red light tickets enforcement is as much important.
Don’t want the state to generate revenue? Literally just stop speeding and stop running red lights.