I thought it was to leave a fingerprint so if the driver took off they had positive ID of the vehicle. If it was drugs, the dog would scent on the cop too
Fingerprints are not so perfect. A junior lawyer could easily state the cops had previously marked the vehicle.