system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why is it cheaper to fly to Panama City, Panama than it is to Miami, Florida from Chicago?

I love traveling, and I am looking up flights for a trip right now using skyscanner.com. I found a flight for $550 to Panama City and a flight for $650 to Miami, Florida from O'Hare. How is this possible? The trip is longer to Panama, so I assumed that flight would be cheaper. Do any of you know if this has something to do with demand, fuel, or something else altogether?
gpt
It's all about demand. The price has nothing to do with day-to-day cost. As long as the airline can cover their cost they will charge as much as they can for each seat. 

There are way more people who want to Miami than to Panama City, so the airline can charge more. 

Both flights will be profitable overall, otherwise they'd stop doing the flight, but you can't assess profitability off of any one ticket price.