Historically, the word ship was neuter in English. Boat apparently was either feminine or masculine but depending on what I do not know.