Is this some sort of magical supply of money that is left over after government has spent all the money it wanted to?
How could that be? When did it ever happen that politicians spent less money than they collected?
It is basically reserves of foreign currency. Russia can obviously print all the rubles it wants, but if they need to import things from other countries they have to pay in Euros or dollars.