At least here in Canada they don't pretend it isn't to raise funds. It clearly says on the bottom of all by-law tickets that "the money collected enforcing by-law fines goes directly towards supporting your municipality, thank you for doing your part." That last part always cracks me up. Thank you for breaking the "law" and making us money...sucker.
Parking meters tickets are a huge money maker in my town as parking is almost non-existent. In my mind all funds raised from those tickets should go towards, i don't know, adding a parking garage or more parking, duh. Jaywalking tickets should go to improving cross walks and pedestrian overpasses, etc. etc. Of course none of it ever does, because it isn't actually about improving those situations.
If any cop is pretending that any of these tickets is for "your safety" they are outright lying. It might be that they are lying to themselves as well though, to make their job of collecting them easier. No one wants to feel like a big ol jerk, and having to write these kinds of tickets often results in hostile reactions from the recipients even if they were in violation. So I can see both sides, kinda. Things would be a lot easier for them if these weren't money grabs and the ticket amount was actually in line with the act. jaywalking, seems like a $5 infraction tops to me.