I'm not talking about owning a profitable race team. I'm talking about selling race machines to other teams and running a support network for profit. Which is something both Pagani and Koennigsegg do. They make profit off the race cars and while doing so they're using the race track to market their brand by building reputation and brand recognition. The marketing alone is the reason why just about every car and bike manufacture participates in motor sports.
Can you provide a link showing Koenigsegg and Pagani providing race cars to teams? I have never heard that and it is not mentioned on their respective websites. They both seem to do most of their marketing on Top Gear.
2005 GS1150 Adventure - Range Rover, 2002 DR650 SE - Land Rover
"Not all who wander are lost" - JRR Tolkien