I haven't found anyone to trade with yet, but I assume it has to do with Charisma or any other modifiers. The price when you hover over the item is probably the "fixed value" of the item, and there is a modified which sets at what markup you get an item for.

This is just my conjecture based on playing like many other CRPGs, and so I may be wrong, and it may be a bug.