They only generate revenue to be in the black when the yellow is shorter than reasonable.
Increase the yellow by a second and you decrease revenue by 90%.
The longer the cycle, and the transition between stages, the more likely it is that drivers will go through late. The long cycles help lead to increased red light running.
The Brits have a solution, web search for “burning gatso”. They take a bike tire with some gasoline in it, light it, and use a stick to put it up on the camera. End of camera.
And you decrease accidents by about 20% IIRC. But far too many politicians could not care less.