I think you might have some misconceptions. The difference in take home pay for devs is quite large between the US and Europe and you can still get insurance with pre-existing conditions in the US with an out of pocket maximum much smaller than the difference in pay.