Well, 'Ghost Ship' is purely fictional. The story was crafted by the imagination of the writers and filmmakers to thrill and scare the audience. There's no real-life event behind it.
One famous real - life event was the Mary Celeste. It was found adrift in the Atlantic Ocean in 1872 with no one on board. The ship was in relatively good condition, the cargo was intact, and there were signs that the crew had left in a hurry. No one knows exactly what happened to them. It's this kind of mystery that often inspires the idea of a ghost ship in stories.
The 'Ghost Ship' true story is often about ships that are found adrift with no living crew on board. These ships can be a mystery. Sometimes it's due to disasters at sea like storms, which might have swept the crew away. Or there could be more sinister reasons such as mutiny where the crew turned on each other and then abandoned the ship.
The Mary Celeste is a very well - known example. It was found in 1872 adrift in the Atlantic Ocean. The ship was intact, with all its cargo and supplies still there, but not a single crew member was on board. Another one could be the Carroll A. Deering which ran aground in 1921. The crew had disappeared, and there were some strange circumstances surrounding the ship.