The idea that parking fines are a source of significant revenue is pretty bogus. NYC for example collects around $500m in fines while spending about $200m for the NYPD division of traffic control and another $270m for the Department of Finance (which collects the fines) and while these costs are not entirely dedicated to the purpose of issuing tickets, it gives you a sense of the scale of net revenues from parking tickets (low hundreds of millions at most) compared to a city budget of over $75 billion.
Parking tickets exist because public property in urban areas is extremely valuable and the opportunity cost of letting some scofflaw waste the space is enormous.