Those are race team sponsorships. People pay the owner of the car to put those ads on the car. That’s the exact opposite of the point under discussion: the owner is getting revenue by choosing to put ads on the car, that is much different than Ferrari putting ads on a car you buy in order to make more money for Ferrari. Those sponsor ads make money for the owner of the car/team.
Also I think Enzo Ferrari would argue that the F1 cars and team are the real Ferrari porduct. The road cars are just ads and merchandise for the race team. =P