I have a perfect driving record but the officer gave me a ticket anyway. Why?

Decisions to cite are situational and circumstantial. The nature of the violation, weather conditions or other factors are considered before issuing a citation. An individual's driving record is typically not a factor.