Subaru and Mitsubishi’s presence in rally racing helped establish their brand identities, which helped sell a lot of cars.