Direct answer: A photo eye uses a light beam to watch an area near the gate. A vehicle loop senses a vehicle through a wire loop in or under the driveway.
They solve different jobs. Photo eyes are commonly part of entrapment protection. Vehicle loops can be used for exit commands or to help keep a gate from closing on a vehicle.