One of the biggest scientific findings is that boys and men are more interested in things and women more interested in people.

Medicine may well be harder and more prestigious than engineering.  But it involves people and caring to a much greater degree.  It could be that this type of work interests women more than engineering because of the social aspects.