If you own a restaurant and a sports stadium opens next door which causes the value of the land to double overnight, you'd suddenly owe $50,000 in capital gains tax, but what if you don't have $50,000 in cash? You'd have to sell your restaurant to pay the tax on it.
If you write some software for your small business and start to license it to people for $50 each, how much is your corporation which owns the copyright now worth? Ten thousand dollars? Ten billion dollars? It depends how many copies you expect to sell. But the government would have to appraise it. What do you do if they appraise it as worth tens of millions of dollars? You'd immediately owe more than a million dollars in capital gains tax, but it's on the appraised value of an asset that may not turn into that much revenue for years -- or at all. And with no guarantee you could even find anyone willing to pay you that much for the business.
There are good reasons not to collect the tax until the investment is converted to cash.