It may be many things, but I very much doubt the motivation is a money grab. A few people paying $45 isn't lining the pockets of some government official, or plugging a hole in any possible budget.
Dealing with the presence of travelers who haven't updated their driver's licenses requires a bunch of extra staff to perform the time-consuming additional verifications. The basic idea is for those staff to be paid by the people using them, rather than by taxpayers and air travelers more generally. As well as there being a small deterrent effect.
There is no legal requirement to show id or answer any questions to establish identification before flying. In other words there is no extra work required by law which the fee would cover.
They're no longer a best of both worlds, good overall range, not as bad for the environment.
They're now worst of both worlds, bad electric range, bad for the enviroment.
Anyone considering an EV isn't going to want to compromise on those two things as much as they used to.