To be fair, the only gasoline engines with this kind of lifespan have had significant maintenance over their lifetimes. Regular oil changes, spark plugs and air filters and other servicing. The idea that gasoline engines are inherently more reliable than electric just doesn't match the data.
For what it’s worth, I bought a new gas mower at Lowe’s last summer, and had to buy a new one this summer because I couldn’t get the old one started.
Granted, I probably could have spent a few days figuring out how to repair the old gas powered mower from last year, but it was oozing oil everywhere and I would have just been following YouTube tutorials and endless trips to the hardware store or waiting on parts from Amazon.
(Just sharing this anecdote since neither gas nor electric are perfect!)
A friend of mine spends an hour or two rebuilding or cleaning his gas lawnmower every year. Another friend had a brand new one fail the first time he fired it up. Meanwhile my Ego has gone several years with literally zero maintenance other than five minute blade sharpening.
My dad's gas trimmer was constantly unreliable and never easy to start. My Ego trimmer once again has been fine for several years without any maintenance other than winding the string.