Plus I would imagine that everyone wants their illness looked into, thus that's where funding tends to go. I care much less for physicists to figure out what dark matter is than how to treat health problem X that bothers me daily. (Just an example. In my particular case I'm healthy and would actually be quite excited about dark matter findings compared to any individual illness solution... but still.)
This comment would be worth a lot more with some stats about funding going towards the different fields, though. Not sure where to find that.
Or is there some other reason for the discrepancy?
Relevant xkcd - https://xkcd.com/2085/
There are several medical subfields that on their own get more funding than the entire NSF (i.e. all other science).