Ghost hunt question

I was in the basement looking for bone evidence when the ghost from a bedroom upstairs began a hunt. I heard it and was able to run up to a closet. I was excited because I thought I unintentionally got "have a member of your team escape the ghost during a hunt" butttttttt nope I did not. Does the ghost have to see me or vice versa for it to count? Or is there any other reason that I may not have gotten it? Still pretty new trying to figure the game out 😅