Ghosts are sci-fi.
As non-corporeal entities, there is nothing tethering them to the earth. The movement of the planet, from its rotation to its movement through the solar system, the solar system through the galaxy, etc., the Earth should be leaving a giant wake of spirits behind it in space.
If they have something.to be tethered but can still pass through walls, they should get sucked down to the center of the Earth's gravity well immediately.
So, if you see a ghost, it is a master of astrodynamics and should be feared.