They don't, this is a lie from the country that's been embargoing Cuba into oblivion for sixty years.
"Host" nations agree to pay Cuba for the doctor's work, agree not to pay the doctor directly, and agree to deport them back to Cuba if they attempt to negotiate being paid directly. This is slavery by anyone's definition.