"An original equipment manufacturer (OEM) is a company that produces parts and equipment that may be marketed by another manufacturer. "
https://en.wikipedia.org/wiki/Original_equipment_manufacture...
When I started working on home power monitoring solutions "cloud" software, we could brand the web page with the company that sold/installed the equipment. If you didn't buy directly from us, you would have little idea where the equipment came from. Even the tech support information was that of our resellers. That changed overtime as the business started using there own branding.
Googling it, it looks like Mazda makes at least some of the Yaris line, which used to be the Scion brand before that.
https://www.forbes.com/sites/samabuelsamid/2018/04/09/2018-t...
It results in some interesting vehicles. In the US, GM used to sell Toyota Corolla badged as Geo Prisms.
And in Japan, Toyota sold Chevrolet Cavaliers rebadged as Toyota Cavaliers.