Whenever you hold an asset, it can increase or decrease in value. When you trade the bitcoin for fiat currency, then you're trading an asset for dollars. It works the same way as when you trade gold bullion for dollars. Bartering or exchanging bitcoins for anything is also a taxable event.