Isn't the main purpose of red light cameras to make money?

No. The goal of red light camera enforcement systems is to improve public safety by reducing injuries and deaths caused by accidents. Drivers are advised of camera systems at each intersection that photo enforcement is in use by way of signage. Revenue is generated from fines paid by drivers who continue to run red lights, which is a serious traffic safety problem.