It is not uncommon for a property to be assigned multiple times and for a few wholesalers to make money in a transaction from the seller to the end buyer.
Profits from flipping real estate come from either buying low and selling high (often in a rapidly rising market), or buying a house that needs repair and fixing it up before reselling it for a profit ("fix and flip").