For a manufacturer to invest in motorsport it is all about branding and brand awareness. It is a totally another form of advertising.
Possibly the old saying "win on Sunday, sell on Monday" may not...