This dream is a metaphor for your feelings about your former relationship. It was a sinking ship, rotting away, and you rightfully said Fuck that, and walked away. Essentially, your subconscious processing the relationship, and it’s ending, in a way that very clearly says it would have been pointless to stick around.