It doesn't protect you completely. I believe it has bene proven that rubber tyres isn't what offers you protection when in your car, but rather the fact that you are in the car yourself.
The reason it provides some form of protection is because it is an insulator and does not conduct electricity as easily as metal for example does.
the lightning would take the path of least resistance, which is through the car's external casing and internal wirings into the tyres - which - when wet, also conducts electricity, finally dissipating into the ground.
Actually electricity can travel through rubber, just not as easily as conductors.
Rubbers not a conductor its an insulator there4 electricity cannot trvel frn it
I learned that from the cartoon show transformers teehee