The problem is whose pocket the fine ends up in? If it went to charity the city wouldn't be so incentivized.
It would be too inefficient and fraud-prone to actually work, but it's a nice idea.
That would be an efficient use of resources. This whole "law-making" thing isn't hard at all, what do they do all day in Congress?