Vinegar is a weak acid, while salt water is a neutral solution. The acidity of vinegar causes the metal in the penny to react and form iron oxide, which is rust. Salt water does not have the same effect on metal, so it will not cause the penny to rust as quickly.