They used to be land mammals. Maybe they had a civilization, but they ruined the climate with it, then evolved to be sea mammals but kept their intelligence?
https://en.wikipedia.org/wiki/Silurian_hypothesis
Yes! another fan of the Silurian hypothesis. I know most dismiss it but there really are oddities in the geological record that are somewhat consistent with it.