Not every airplane does that. Commercial planes mostly do, but its not mandated under all circumstances as far as I know. (Speaking for my region only)
There are still airplanes flying that have no electrical system but even then some of them have retrofitted a system.
P.S.: Commercial planes (esp. big ones) should have hardly any contact points with flying taxis.