They have an edge in that booking flights is, for most people, a low frequency purchase but most other products on Amazon are purchased with higher frequency, so Amazon can sell discounted flights but then earn back a part of that promotion from customers that shop for other Amazon products and from their Prime membership fees.