This is about city revenue and not public safety. Cities turn them off when they stop bringing in the revenue (because of compliance).
They have to split the ticket money with a private corporation that makes and maintains the boxes.
They don't have to. They could use union government employees to do all that. It's not like they're very busy. But instead of a 50% loss of ticket revenue, it would cost them 200% of revenue.