Toyota sells the most cars of any auto maker. What ground was lost?
It's clear Toyota has correctly assessed the market. They got it right.
As time goes on, BEVs will be a bigger percentage of the cars they sell. In the meantime they'll keep selling the cars they've got, including their current BEVs.
Given the initial success of the Prius, every Tesla you see on the road should've been a Toyota. (If not something from GM, who has even more experience in blowing an early lead in electrification.)
See also: Amazon's chances in an alternative timeline where Sears wasn't run by morons.
Toyota wasted a lot of time and money on that bet, and lost a lot of ground in the market.