In most countries, buying or selling miles isn't illegal, but rather it just violates the terms & conditions of loyalty programs. Essentially mileage brokers use their expertise to help people get a deal on premium airfare: In some cases they might just sell you miles at a discount, which you can use however you'd like.