Gas tax has always been a proxy metric for mileage in order to implement usage based costs to help offset the many billions of dollars California spends maintaining roads every year.
Gas as a proxy for mileage breaks down with widespread EV usage, so even though they are a benefit for many reasons with incentivizing, they still require expensive road upkeep so should not be immune from usage taxation.