If you own an apartment building and rent it out, you have to pay taxes on the income it provides.
The grocery store won't take stock certificates in payment for a gallon of milk. Instead, you have to sell it. As soon as you do, you are recognizing a capital gain and are taxed on it.