Correlation != Causation
The more likely explanation for Castro seeking treatment in Spain is that Cuba is a relatively small country of only 11 million, and it should be expected that they're not at the very forefront of the world on every area of medical expertise.