Your source is counting the share of electricity generation. My source[0] is counting the share of primary energy; including fuel, heating, etc. I believe the latter is more relevant for the current discussion (CO2 emissions and cars). Electricity is not even half of our primary energy use.
[0] https://ourworldindata.org/renewable-energy