Do you live in an apartment or multi-story house with other people? Dogs have extremely good hearing, so he may be just listening to your neighbors/family even though you might not hear anything.
I hope they are friendly ghost lol so far she hasn’t barked at them, and I live in a house just me and my husband no close neighbors terminix sprays montly for insects hummm maybe it is a ghost….