Ghost Obi-wan told Luke about Yoda and Dagobah
I think the difference here is that it is assumed that Obi-Wan knew this before he died. Luke didn’t know about Rey and Palpatine until AFTER he died. I think the real issue is, are force ghosts omnipotent?