I'm guessing this was through the DV Lottery program? If so I agree that the goal of immigration should be to attract the best and the brightest but there are plenty of ways to do that. The DV program is the only avenue for people who haven't had a chance in life to become the best and brightest yet - it's their only way in. Your friend could presumably get in on a work visa which, considering her qualifications, shouldn't be difficult. The DV program is a lottery and the only way for people who don't meet the strict requirements of the other visas to get in. Even when you win your chance at acceptance is 50/50 as they issue 2x the number of winning entries as they have visas available to account for people who win and change their mind or get in via a spouse.
DV is a nice 'instant jackpot' option. Some people I know were playing DV even when they had EB GC pending. Small percentage of those won the GC, and opted for DV (paid out of pocket) instead of waiting for company-sponsored EB.