When booking international flights online, I increasingly find that the airline selling the fare isn't the airline actually flying the route. For example, I'll search for a flight on Orbitz.com and see that the lowest fare is sold by Lufthansa but the flight is flown by United. How can we avoid this situation and why do airlines do this in the first place?