Is there a reason why spirits appear to us?

A ghost will show themselves for multiple reasons. One of the main reasons is to ask for help. They often need assistance and need a mortals assistance to perform a task needed for them to pass on. They could also be a family member wanting to say goodbye before passing on. A spirit will almost never attack a human and often just need help.

-----------------------------------------------------

Zippyo is abosolutely correct.