in this particular case i dont really know, its happened to me before many times but i think its just because the head has a weird hitbox or something
to ghost in general, just move really fast. if your bodypart is moving really fast and gets very close to uke (but doesnt touch it) in one frame, in the next frame it will "ghost" inside uke