This was a normal greeting among the Jews. However, Jesus may have said this here because the disciples thought he was a ghost and were frightened when he appeared.
This refers to the spirit of a dead person.