Why? Weight.
The specific energy (energy per kg, edited per masklinn) of batteries sadly lags the specific energy of gasoline or kerosene, and the airplane carries that weight for the whole flight for an electric airplane. (My gas airplane gets lighter and lands as much as 1000 pounds lighter than it took off, meaning the landing gear, wing spar attachments, and brakes can all be lighter.)
Many airplanes are certified for a ramp, taxi, and takeoff weight higher than their approved landing weight. Electrics will be unable to take advantage of this and must confine their takeoff weight to their landing weight.
I love that such rapid progress is being made in automotive, and I'd love to see that adoption increase so we can reserve petro-based fuels for cases where their energy density provides a compelling operational benefit, such as in aviation.