Related: Ford once had a 33.4% stake in Mazda and there was a bunch of cross-pollination between the two companies at that time. My 2002 Mazda Protege was loaded with various parts bearing the FoMoCo logo. And Mazda engines/chassis powered a bunch of Ford cars world-wide.
Ownership changes over time. At one time ford was in control. Which is why I checked - what toyota is doing makes no sense until you see current situations, now there is an obvious expected return on investment (if it works out of course- if it does they will do this to their own factories, if not they will write it off and not lose much.)