Or he didn’t know the ship would sink. It didn’t in his version of the future. Because Rose’s suicide caused it not to sink somehow. Then he came in time for reasons unknown for a boat ride on a ship that didn’t sink but saved Rose, not knowing that would alter history the way it did. In fact it altered his because he died. And he isn’t there to save Rose. So the Titanic doesn’t sink and he doesn’t exist.