Yes never intended to. The issues with hydrogen are insurmountable - the cost of it, the lack of scalability, the energy required to make "green" hydrogen, the dirty secret that most hydrogen isn't green and comes from natural gas, the extreme volatility / danger of it, the lifetime of the fuel cell, and the environmental impact of hydrogen escaping into the atmosphere. All these are insurmountable issues, as has been demonstrated by the utter failure of this technology to scale up.
So now Toyota are playing the same tune with liquid hydrogen. Except liquid hydrogen must be stored in an insulated flask at -250c in the car and offgassed so it basically evaporates into the atmosphere if you don't use it in a few days. Great for methane production and nothing else. They're also hyping up ammonia which is merely an extremely toxic chemical that burns and produces nitrogen oxide, another potent greenhouse gas. It's so harebrained and desperate that I wonder who they're fooling any more. It may be some regions like the EU with EV deadlines will permit some synthetic fuel powered vehicles, but none of this garbage will be allowed.
As for why they're doing it, there is some geopolitics involved here since China has access to natural resources, but that's not all of it at all. It is primarily because Toyota's former CEO got a hate boner for electric vehicles and ever since they have been playing this charade. Toyota is also a domineering force in Japanese automotive circles and they've forced other makers down the same route. They will of course belatedly make some EVs, ironically made by Chinese OEMs, but by then it may be too late.