For volcanoes, the lure is that volcanic soil is extremely fertile. In Roman times, the choice for those living around Vesuvius was one between “way harder to grow your food” and “small chance of a volcanic eruption that may kill you”
https://volcanology.geol.ucsb.edu/soil.htm:
“One example of the effect of volcanoes on agricultural lands is in Italy. Except for the volcanic region around Naples, farming in southern Italy is exceedingly difficult because limestone forms the basement rock and the soil is generally quite poor. But the region around Naples, which includes Mount Vesuvius, is very rich mainly because of two large eruptions 35,000 and 12000 years ago that left the region blanketed with very thick deposits of tephra which has since weathered to rich soils. Part of this area includes Mount Vesuvius. The region has been intensively cultivated since before the birth of Christ. The land is planted with vines, vegetables, or flowers. Every square foot of this rich soil is used. For example, even a small vineyard will have, in addition to grapes and spring beans on the trellises, fava beans, cauliflower and onions between the trellis rows, and the vineyard margin rimmed with orange and lemon trees, herbs, and flowers. It also is a huge tomato growing region“