The story closes with a scene of holograms digging away at a mine, literally with pickaxes and baskets to carry ore around in. Even pre-industrial miners had better equipment than this. Marooning the doctors there seem more like punishment than mere slavery.
It is also unfortunate that the writers of Trek seem determined to demonstrate that future culture is incredibly trashy.