That's because both buying and selling incur transaction fees, your cost is the price you bought at plus the transaction fee, which is your total cost.