Why car doesn’t start after it rains?

Mostly the reasons are the wearing off wires in old vehicles and sometimes the discharged battery is to be blamed and many times there are electrical issues in the car and sometimes the distributor cap might have a crack in it which could also be a potential reason for a car not starting