Is this only a revenue generating program?

This is a safety program. Automated safety systems have been shown to reduce red light violations and intersection crashes. Often other intersections not monitored by automated enforcement also see a decrease in violations and accidents because of the presence of enforcement in other areas of the community.