Price is the intersection of supply and demand. A buyer will ask a seller to accept a lower price if they think the seller is willing to accept a lower price. A seller might accept a lower price if they don't think they can get a higher price.
You are paid $X because the buyer couldn't find someone willing to accept $X-1, and you accepted $X because you couldn't find someone to give you $X+1.