The QR flight is making money with the cargo on board only, technically it doesn't need any passengers to make a profit on the route.
Cargo is merely additional revenue, it’s always necessary in this market to carry good passenger loads *ESPECIALLY* down the pointy end. Look no further than Etihad at EDI to see what happens next if you don’t.