Yeah, Razi's thought was digging up what we now know are genies to bury the dead sailors is probably a bad idea so we might as well move the bodies inlands a bit to bury them without disturbing burial grounds.