They had alittle time as some were leaving by boat, but I think (from a documentary) They ran out of time.
Also, even in harbor the eruption took out sea vessels.
Apparently, according to that little piece from Wikipedia, that I found, the lava flow and other superheated material was traveling at over 60 mph…
That’s pretty hard to outrun… All those poor folks got a glimpse of Hell before dying