I'm sorry, you are just wrong about this. Chance had very little to do with it. State of the art rechargeable battery technology for a hundred years has been heavy lead acid. We're talking 30kwh per KG. Not the 200 to 300 of a modern EV.
The improvements in battery chemistry didn't come about by chance. It also didn't improve because of a lack of interest. They had been trying to make a better battery for a century without much improvement.
This isn't quite right. Lead-acid batteries dominated because they were cheap, but there were better chemistries.
The Nickel-Cadmium battery was invented in 1899. Nicads have about 30% higher specific energy than Lead-acid, higher power and much higher cycle life. The practical specific energy is even higher because they can be fully discharged without damage, whereas the cycle life of Lead-acid dramatically reduces at high depth of discharge. They can be charged much faster too, typically in 1 hour vs 5 hours for lead-acid. They have been used in aircraft since the 1930s.
Consumer Nicads were phased out from 2006 because cadmium is highly toxic. This opened the door for another battery which was invented in 1967 to take over - Nickel Metal Hydride (NiMH). It has higher specific energy than Nicad, but lower power and shorter cycle life. Toyota used NiMH batteries in its Prius hybrid starting in 1997.
Rechargeable Lithium-ion batteries were invented in 1985, with commercial production beginning in 1991.
I started using Li-ion batteries in my electric powered RC model airplanes in 2003. Before that I used Nicads, then NiMH when they got powerful enough. The problem with Li-ion back then was that consumer batteries (mostly used in laptop computers and digital cameras) were optimized for high energy density rather than high power, which limited their use to lower powered models. Then some Chinese manufacturers started making Lithium-Polymer batteries for R/C model use. At first they were only rated for 6C (6 x times 1 hour discharge rate), but soon improved to 10C, then 25C, 40C etc. up to 60C and higher today (at 60C the battery can be completely discharged in just 1 minute!).
You may wonder why I am talking about this niche market. The reason is that this market demanded light weight high power batteries, encouraging manufacturers to develop them. Lead-acid dominated other markets where weight didn't matter, such as stationary storage and motor cars. You might notice however that devices such as laptops and cell phones didn't use Lead-acid even before Li-ion batteries existed. It's all about producing a product optimized for the application.
Because EVs weren't a thing since the 1930's, batteries were weren't developed for them. It wasn't that the technology inherently took so long to develop, but that there was little
incentive to do so. Now that there is, big strides are being made. I can buy a Leaf HV battery repacked with modern cells that has over 3 times the capacity with only a small weight increase, or double the capacity while being lighter than the original! That's a huge improvement in a little over a decade. I'm sure there is more they can do too.
But it's not just the batteries that are being optimized. Tesla's Cybercab doesn't need a driver so it can be made smaller, suiting a smaller battery. It has inductive charging so it can recharge wherever it's parked, reducing battery capacity requirements even more. The car is made largely from plastic and glued together - 60% fewer parts, no welding, no painting - making it much cheaper to produce. That means Tesla can spend more money on the important part - the computer. The car will drive itself so well that many poeple will think twice about owning their own car when they can just hail a Cybercab whenever they need one for much less money. People will be shocked by how much their gas car is
really costing them. We may see a whole new generation of people who don't own cars and have more money to spend on other stuff.