Because Russia was declared the successor state to the USSR for the UN’s purposes. Although 14 of the 15 Soviet republics seceded, Russia did not, and the remains of the USSR government were merged with the Russian Republic government after the failed anti-Gorbachev hardliners’ coup.
The China seat, not only in the General Assembly but on the permanent Security Council, was also transferred from the Republic of China government to the People’s Republic government (1971?), in belated recognition of the results of the civil war there. The remainder of the ROC, Taiwan, was expelled from the UN entirely in the process, and, along with the Vatican, is the only country not to be a full member now - and even the Vatican holds observer status, by the Pope’s own choice.