You farm the gold or items and then sell them to players for real-world cash.
It is possible to find offices full of people across the Philippines, Indonesia, Mexico, and Vietnam all carrying out the repetitive actions in different MMOs to farm items.