When I purchased my place, I used the seller's agent. My offer was about 1% lower than someone else and I still got the place. I only assume he made up the difference.
Or they just pitched you harder over other offers because they stood to make more. They love nothing more than representing both sides, which should be illegal.
"This buyer has a higher down payment". "They have more reserves if it under appraises". etc.
Price doesn't always win. And it shouldn't. But there are a lot of shady agents that do shady things.