The US's banking industry's reputation took a big hit in 2008, and it has become increasingly common for top university students to head into tech over finance since then. Not to mention, firms like Goldman Sachs are replacing many of their traditional traders with software engineers.
Outside of top law schools, the prospects of law grads have diminished greatly over the past decade or two. And some varieties of lawyers, such as patent trolls, are especially frowned upon -- the opposite of "top-tier" and "distinguished" in the eyes of many.
And I don't think the pool of potential doctors and the pool of potential software engineers overlap much at all. I would guess that the number of university students deciding to be doctors instead of software engineers is quite small.