Salary isn't traditionally what motivates people to study medicine. It's prestige. The difficulty is part of the prestige, which is probably why they still do things like memorize long lists of cranial nerve names. I haven't heard that they have a problem with dropout rates.
A good CS education only gives you prestige with fellow nerds.