“If it’s not a traffic violation, then why the charge?”
1. To raise money to pay for the cameras.
2. To discourage red light running.
As for discouraging red light running, that's what moving violations are for.