It’s likely the trunk popped open due to water pressure - the car was probably floating just enough to put stress on the latch and it popped open on it’s own. Happens a lot to flooded cars when the trunk is sealed well while the rest of the car sinks and fills with water.