Why does Russia have a command economy?

It doesn't. Russia has market economy. Though the Soviet Union indeed had a command economy.