Never in my life would I have thought of that.
The cheapest cost per prisoner in the US is $23,000 per year (Arkansas with other states costing more). That's a lot of support you can give a person before it makes sense to send them to prison, especially if the prison doesn't actively work towards rehabilitation.
Problem is MVP prisons for your criminal population is viewed as needed while spending the money more effectively doesn't really have political consensus.
We don't yet have a surveillance state capable of observing every time someone puts gum in a parking meter while pretending to pay it, so they can park for free, it's not that we are "allergic" to enforcing this so choose to prevent parking at vandalized meters instead, it's that it's not realistic to catch that. Although I guess we're getting closer to that surveillance state now, but certainly weren't when these laws were first implemented, their motivation was that it was not feasible to catch most people vandalizing parking meters, instead the reward for doing so had to be removed (which honestly seems a lot more effective anyway??)
https://www.sfmta.com/getting-around/drive-park/parking-mete...
Google AI agrees that it's generally illegal. I can't look up every single municipality of course, but here's a few. It certainly may not be universal, but it is not unusual, I don't have figures on how popular it is, maybe not as popular as I thought, but it's not at all unusual!
Rockville MD: "If a parking meter is not registering time with the insertion of coins, debit/credit card or ParkMobile, you must either park elsewhere or pay with another payment method available" https://www.rockvillemd.gov/274/Public-Parking
Chicago: "Overstuffed meters wouldn't accept quarters, leading to broken meters and tickets for the parkers who tried to use them." https://www.governing.com/archive/chicago-parking-meters.htm...
Bellingham Washington: "City code prohibits parking in a space if the meter is broken." https://cob.org/wp-content/uploads/parking-meter-info.pdf