Not just attention, but increases risk so companies avoid such activities if they know the reward (dividend paid to shareholders) doesn't justify the risk (equipment being damaged, assets being burned)
Don't forget the cost of insurance. That's the big one. If it stops being possible to insure fossil fuel infrastructure, then investments shift to renewables that can be insured. It's pretty simple economic math.
Edit: that also works in all levels of the economy. Pipeline constitution vehicle get torched every time there's a pipeline built? Uninsurable therefore reduce or stop investment. Cas in cities always get flat tires and vandalized? People won't buy cars they can't insure.