Fly's have brains. They can see you and your eyes. They have survived other animals chasing them, so they have experience avoiding death. They simply fly out of your vision, make radical changes in direction, and land somewhere behind you.