The situation will get worse with the time.

Political and social pressure makes the manufacturers to invest into EV and other so called green technologies.
The so called green technologies can not be effectively promoted by motorsport of any kind because people willing to buy EV mostly see motorsport as something fundamentally wrong.
It is near impossible to make the fans of traditional motorsport follow alternative means of motorsport, i.e. with EVs, while the others are not interested in any sort of racing at all.
Another ongoing trend of higher and higher automation of driving also points to a situation when motorsport is going to be a redundant thing for marketing of mainstream manufacturers (even without EVs).
All in all it means that rally, racing or other performance-based competitions are virtually dead as marketing tool for the future.