Acid catalyses the synthesis of aspirin from salicylic acid and acetic anhydride by improving the quality of the -OOCCH3 leaving group from the anhydride to a much stabler HOOCCH3. It'd be a good idea to take a look at the mechanism of the reaction between salicylic acid and acetic anhydride if you are unsure of how the synthesis works