When you sell items to somebody and then kill that NPC, the NPC will drop all items you ever sold him.
I am not sure if this is also true for money, but it may be a side effect of the trading system.

Prof. Dr. Dr. Mad S. Tist

World leading expert of artificial stupidity.
Because there are too many people who work on artificial intelligence already