It's not clear to me that the Romans knew that, or that it informed their choice of that building material. I suspect it's more that they built with what they had, and got lucky that it turns out to be incredibly durable stuff.
https://www.nature.com/news/seawater-is-the-secret-to-long-l...
Sounds like they knew.