Only 100 copies of the 1961 Ferrari 250 GT California were built. So, it's a rare car, and they couldn't afford one for the driving sequences. At the time of filming, one was worth $350,000 -- and one has recently sold at auction for over $10M.
They used a real one for close-up scenes. But, for the rest of the movie, they built three replicas. The one used for driving scenes was... difficult. They had to film the scene at the garage multiple times because the engine died when the attendant tried to drive it off.
However, one of the replicas was restored, and recently sold at auction for $235,000.