The primary reason we call them "trivial violations" is that enforcing them causes more harm than it prevents.
I'm not sure I agree with that, but I think it's not irrational.
My first thought was traffic things like prohibited turns. UK is seeing more automated enforcement around this and the purpose is to improve traffic flow, or to increase fine revenue if you're more cynical.
Most countries are happy to let you cross a road at any convenient place provided at that particular moment it doesn’t cause vehicles to slow down (ie there’s a safe gap in traffic). In the US, and often in a oddly ‘ethno-sensitive’ way, that’s an offence.
Wearing all black at night and sprinting in front of cars on fast, busy roads is not something people should be doing, yet I see it constantly.