And if your investment has an unrealized loss, does the government reimburse you?
They probably handle it like capital losses, a small maximum per year that becomes losses to be carried forward for many years...
Taxes on capital gains you owe immediately, taxes on capital losses—sit and wait for years...
Heads they win, tails you lose.