And while telephone wires might not be needed, much more energy intensive infrastructure like water and sewer pipes and power lines are needed.
We have electric cars and whatnot, but they're still far more expensive than fossil fuel cars with less bang for the buck in terms of power and portability. I doubt we will see cost effective construction vehicles, ships, planes, etc. powered via batteries anytime soon, at least not on a timescale that makes a material difference.
https://www.iea.org/world/energy-mix
22.9% natural gas + 30% oil + 27.6% coal = 80.5% of the world's energy coming from fossil fuels today.
Fossil fuels are still a very powerful, cost effective, and versatile battery compared to electric batteries.
From my perspective it's like you're looking at the market for telephones in 2004 and remarking that most phones are landlines and most portable phones are flip phones and therefore you don't see a future for smartphones.
Solar and wind are cheaper than any other form of electricity in history. (Often even when paired with a storage facility) The fact that it doesn't always shine or blow when needed is driving massive investment into storage technology. The world is changing rapidly. You're not paying attention.