Vinegar incorporates acetic acid which gets rid of this coating. When the defensive coating is removed, oxygen in the environment can reach the iron in the metal wool and a chemical reaction called oxidation occurs. This reaction is additionally an exothermic reaction. It creates warmth energy.
Hope it helped! Have a nice day! <3