This is made possible because the bees which visited the flower earlier marked it by leaving a drop on it with a special scent.