There are standards for this kind of thing, like if a light is on a road with a speed limit of X, then a yellow light has to last Y seconds. Imagine a yellow light that lasted .5s: you'd have to stand on your brakes and risk causing a rear end collision from the car behind you to even have a chance of not getting fined. That's the opposite of safety. My place wasn't that bad, but a defendant successfully demonstrated that the yellow light he was tricked by was illegally short, and a judge basically threw out all the tickets from it and others.
I mention this as just one example of specific light setups that suck. I bet you're right, and this is just a money grab from the local gov't.
Read this if you want to be angry today: https://ww2.motorists.org/blog/6-cities-that-were-caught-sho...
This does mean that if you're in the front of the pack and go about 15 over the speed limit, you won't "catch" the red light.
When you're not in the front of the pack it can be frustrating trying to travel just 3 or 4 miles with the red lights not even a full half mile from each other. Even late at night if you follow the speed limit, you are penalized. You will sit at every red light and look at the vast stretch of nothingness that has the right of way.
If they didn't do this to generate red light revenue, they could have done this to generate more revenue from the gas tax they collect by making people start & stop more often, and from sitting in traffic longer. But I suppose both things could be true. And no, I won't accept any other plausible explanations (/s, but holy heck is government awful here).