When we use "Travel to ship", it does not kill us but, it does get counted in the player's death.
To reproduce this bug:
Step 1 > Go to the ship constructor.
Step 2 > Construct a Ship (If Captain).
Step 3 > Press "E" when it says "Travel to Ship".
Step 4 > Press Tab and check your Deaths.
Have a nice day.