What we want is for no one to drive dangerously. To discourage this, we give tickets for speeding.
For rich people, the fine doesn't mean anything to them because it is not enough money to matter, so they have no incentive to stop speeding. They keep speeding, putting everyone in danger.
The point of a fine (at least for something like speeding) is to discourage the behavior. If you want the DISCOURAGEMENT to be equal (because a rich person speeding is just as dangerous to other drivers as a poor person speeding, so we want to discourage them equally), then the fine needs to vary based on how wealthy the driver is.