When Seekers of Truth and sincere Devotees of God visit holy temples and shrines, many astral beings of positive nature will be roaming near the sannadhis inside the temple. When the seeker/devotee goes there and offer their prayers, suddenly and silently the astral being gets attached to their being without their knowing and they too offer their prayers to the god and goddess in their new found human form.
P.S.
Usually the astral being get detached from the person when they leave the temple.