Technically speaking it's a chemical response to the damage that acts as and SOS type signal. This signal has been observed to attract "helpful" organisms which feed on or otherwise do harm to organisms that harm the plant. So the attraction we have to the smell is completely normal we just also have the higher brain functions needed to realize how make the plant produce that smell. In essence it's the catch 22 of the plant world in regards to humans.
(Kidding, I don't blame you for her tears)