Exactly. Toyota's CEO also explained a few weeks ago that they need to build cars for the whole world. Many countries are not ready yet with infrastructure for electric cars.
I would also add since insurance companies don't want to insure the transportation of batteries in container ships, it makes it difficult for Toyota to produce electric cars in all regions, it would mean they would always need to have a battery factory nearby. https://toyotatimes.jp/en/toyota_news/1055_1.html#anchorTitl...