The purchase cost when entering a village is not the only significant cost. In addition, residents may not be entitled to any capital gain when they leave.
The profit you make when you sell an investment for more than you paid for it. If you buy a house for $300,000 and sell it for $320,000, your capital gain is $20,000. A capital loss is when you sell an investment for less than you paid for it.