What factors contribute to the higher wages earned by certain medical professionals compared to other occupations?