How can i have capital gains on investments when I have not received any payouts?

how can i have capital gains on investments when I have not received any payouts?