Either an exporter paid in dollars uses them to buy roubles, or the customer buys the roubles themselves.