Unless you live in a really backward country in terms of rail infrastructure (i.e. UK), most, if not all, trains are electric.
Even a number of diesel locomotives are actually hybrids in that a diesel engine runs the generator, which in turn runs the electric motor. Such hybrid locomotives are also a lot older than you think.
Why does everything have to be electric? The logic that if we can’t have everything one way, or there is no point at all, is unconvincing.
It is a promising technology and I think it would be stupid not to encourage development.
Also, the point of moving to electric is not to lessen the impact of motor racing itself on the environment. It’s to develop new technology which could influence the industry in general.